+ 2

what is the diff b/w srand() and rand().... then I used random(); as argument with #include<library.h>

the version in my computer and in this app makes me confused....!! which version do we use in this app...!!! most of the commands and functions makes a sort of dizzy

13th May 2017, 2:13 PM
Mohd Thanveer Mk
Mohd Thanveer Mk - avatar
1 Odpowiedź
+ 2
srand stands for seeding the rand. That is you set an initial value for the rand function.
13th May 2017, 2:37 PM
Vishnu ks
Vishnu ks - avatar