The best way to generate numbers between 0 to 99?
A. rand()-100
B. rand()%100
C. rand(100)
D. srand(100)
Answer:B
The best way to generate numbers between 0 to 99?
A. rand()-100 B. rand()%100 C. rand(100) D. srand(100)