Page 1 of 1

Which is the best way to generate numbers between 0 to 99?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
a) rand()-100
b) rand()%100
c) rand(100)
d) srand(100)