what are the numbers generated by rand()%6 ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what are the numbers generated by rand()%6 ??

21st Jun 2016, 7:19 AM
Monic@
Monic@ - avatar
4 Answers
+ 2
from 0 to 5
21st Jun 2016, 7:52 AM
Sardor
Sardor - avatar
0
what do you mean by truly random numbers?? what is srand() ??
22nd Jun 2016, 1:06 PM
Monic@
Monic@ - avatar
0
any number modulo 6 is from 0 to 5
2nd Jul 2016, 11:21 AM
Bala Krishnan Rama Chandran
Bala Krishnan Rama Chandran - avatar
- 1
depend of the random base
21st Jun 2016, 6:56 PM
Guillem Bartrina