123456789101112131415161718192021
#include <iostream> #include <iomanip> #include <cstdlib> using namespace std; #define minimum_value 2 #define maximum_value 10 int main () { int times; times = minimum_value + (rand() % (maximum_value - minimum_value + 1)); cout << "This program will generate " << times << " numbers."; return 0; }