Run ❯
Get your
own
website
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
#include
#include
// Needed for rand() and srand() #include
// Needed for time() using namespace std; int main() { // Get a different random number each time the program runs srand(time(0)); // Generate a random number between 0 and 100 int randomNum = rand() % 101; cout << randomNum; return 0; }