I need help with this in C++, thanks,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

I need help with this in C++, thanks,

Post by answerhappygod »

I need help with this in C++, thanks,
I Need Help With This In C Thanks 1
I Need Help With This In C Thanks 1 (46.42 KiB) Viewed 39 times
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply