+ 2
What is the different between rand () and srand ()
2 Answers
+ 4
rand gives you a pseudo random sequence of numbers. srand on each call sets the pointer to some location in the list which you are getting in . If you don't call it on each attempt or give it a fix seed it will give you the same sequence.
- 1
what did we put the time(0) thats mean we write srand (time (0)) this type