1#include <iostream>
2#include <ctime>
3#include <cstdlib>
4
5using namespace std;
6
7int main()
8{
9 srand((unsigned)time(0));
10 int random_integer;
11 int lowest=1, highest=10;
12 int range=(highest-lowest)+1;
13 for(int index=0; index<20; index++){
14 random_integer = lowest+int(range*rand()/(RAND_MAX + 1.0));
15 cout << random_integer << endl;
16 }
17}