12345678910111213141516
cout << "Max?" << endl; cin >> maximum; cout << "Min?" << endl; cin >> minimum; srand(time(0)); //seed the random number double high=maximum; double low=minimum; for(int i=1; i<=10; i++ ) { random_number = rand () % (high - low + 1) + low; }