0
Why do I always know what the next random number will be? it doesn't look like a random number generator.
3 odpowiedzi
+ 4
Alsifer
use the srand () function together with rand () so you won’t know what number will be
https://code.sololearn.com/cQs37UQ8Eh8g/?ref=app
+ 2
it's in the tutorial;
you need to use srand(time(0)) and you need to:-
#include <cstdlib>
#include <ctime>
0
THANK. I just got to this point