+ 1
HOW RAND ,SRAND , Randomize function works
pls help i am a board exam student
3 Antworten
+ 9
like so: https://en.m.wikipedia.org/wiki/Linear_congruential_generator
*for rand
+ 2
rand makes random values but there is a seed value that rand uses,every time you compile there will be same values.
srand changes seed value every time you compile so there will be different values than previous compilation.