a) rand() % 100
b) rand() % 101
c) (rand() % (101)) + 1
d) (rand() % (100)) + 1
Which of the following will generate random numbers in the range 1-100 (both inclusive)?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of the following will generate random numbers in the range 1-100 (both inclusive)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!