C++ 7.3 Lab 7 - Random Number between 1 and 10 Create a programthat does the following
Fantastic news! We've Found the answer you've been seeking!
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) 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;
}
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: