Write a C++ program that generates a random number
#include<iostream>#include<cstdlib>#includeusingnamespace std;main(){int max;
max =100;//set the upper bound to generate the random numbersrand(time(0));
cout <<"The random number is: "<<rand()%max;}