#include using namespace std; int main() { int i; // use this for debugging //srand(3); //cout << "The time is " << time(nullptr) << endl; srand(time(nullptr)); // for(inititalize; test; progress) statement; // // for(initialize; test; progress) { // statements; // } /* i = 0; while (i < 10) { cout << "A random number is " << rand() << endl; i++; } */ for( i = 0; i < 10; i++) { cout << "The roll of the die is " << rand() % 20 + 1 << endl; } return 0; }