

MCQOPTIONS
Saved Bookmarks
1. |
The correct way to generate numbers between minimum and maximum(inclusive) is _________________ |
A. | minimum + (rand() % (maximum – minimum)); |
B. | minimum + (rand() % (maximum – minimum + 1)); |
C. | minimum * (rand() % (maximum – minimum)); |
D. | minimum – (rand() % (maximum+minimum)); |
Answer» C. minimum * (rand() % (maximum – minimum)); | |