Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 8 (Q.No. 31)
31.
Which of the following formulas can be used to generate random integers between 1 and 10?
1 + rand() % (10 - 1 + 1)
1 + (10 - 1 + 1) % rand()
10 + rand() % (10 - 1 + 1)
10 + rand() % (10 + 1)
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.