#include #include #include using namespace std; int main() { // randomize srand( time( 0 ) ); // current timestamp as a long int cout << "I'll generate a random number in the range 0 to " << RAND_MAX << ": "; int x = rand(); cout << x << '\n'; cout << "In the range 0 to 10: "; x = rand() % 11; cout << x << '\n'; return 0; }