0
Is srand() neccessary because rand() will display random no. without srand()??????
2 Réponses
+ 3
If you run program with rand() without srand(), it will generate same random numbers every time, so it is good to use srand(time(NULL)), because time changes every second. This causes generating different numbers every time you run your program.
0
ok thanx😊