I dont really get what it is asking me to do.
"Type a statement using srand() to seed random number generation using variable seedVal. Then type two statements using rand() to print two random integers between 0 and 9. End with a newline"
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
#include <cstdlib> // Enables use of rand()
#include <ctime> // Enables use of time()
usingnamespace std;
int main() {
int seedVal = 0;
seedVal=time(0);
srand(seedVal);
cout << (rand() % 10) << endl;
cout << (rand() % 10) << endl;
return 0;
}