a) rand() / RAND_MAX
b) rand() % 2
c) rand(0, 1)
d) none of the mentioned
Which of these is a correct way to generate numbers between 0 to 1(inclusive) randomly?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which of these is a correct way to generate numbers between 0 to 1(inclusive) randomly?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!