I need help with this in C++, thanks,
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 (and including) 0 and 9. End with a newline. Ex: 5 7 Note: For this activity, using one statement may yield different output (due to the compiler calling rand() in a different order). Use two statements for this activity. Also, after calling srand() once, do not call srand() again. (Notes) 413706.2298628.qx3zqy7 1 #include <iostream> 2 #include <cstdlib> 3 using namespace std; 4 5 int main() { 6 7 8 9 10 11 12 13 } Run int seedVal; cin >> seedVal; return 0; // Enables use of rand() X Not all tests passed 1 test passed All tests passed
I need help with this in C++, thanks,
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am