MCQOPTIONS
Saved Bookmarks
| 1. |
Which of these is a correct way to generate numbers between 0 to 1(inclusive) randomly? |
| A. | rand() / RAND_MAX |
| B. | rand() % 2 |
| C. | rand(0, 1) |
| D. | none of the mentioned |
| E. | randomly?a) rand() / RAND_MAXb) rand() % 2c) rand(0, 1)d) none of the mentioned |
| Answer» B. rand() % 2 | |