I have started to work on this, but I am not sure if I am on the right track.
Entering the function prototype and the function to generate a random number. The function will accept two integer arguments and return a random number between those two values (inclusive). For example, if the two argument values passed to the function are 1 and 10, the function will return a random integer number in the range of 1 to 10. From the main function, prompt the user for the two numbers, call the function, and display the random number.
So far I have done this:
#include <iostream>
#include <ctime>
int main(void)
{
int i;
srand(time(NULL));
i = rand();
std::cout <<" random number is " <<i <<std::endl;
std::cout <<" generate random numbers from 0 to 10"
return(0);
}
If someone can please look and see where I need get this right.
Thanks
Mohammed