Question: C++ 7.3 Lab 7 - Random Number between 1 and 10 Create a programthat does the following : a. Seeds the random number generator withtime(0)
C++ 7.3 Lab 7 - Random Number between 1 and 10 Create a programthat does the following : a. Seeds the random number generator withtime(0) b. Assigns an integer variable with a random number between1 and 10 (inclusive) c. Returns the integer variable with a returnstatement Note: This program does not have any input or output
#include
#include
#include
using namespace std;
int randFunc (int lower, int upper) {
/* Enter your code here */
}
int main() {
int num;
num = randFunc(1, 10);
return 0;
}
Step by Step Solution
3.35 Rating (161 Votes )
There are 3 Steps involved in it
Here is the program you need include include include usin... View full answer
Get step-by-step solutions from verified subject matter experts
