0
Difference between rand and srand
what do u mean by random and truly random
1 Odpowiedź
+ 6
srand() is used to seed the built-in RNG algorithm. rand() returns a 'random' integer.
This is a replica of an RNG, and demonstrates how seeding works.
https://code.sololearn.com/cMUCJqFL1X65/?ref=app
To some point, true randomness cannot really exist. You can only produce a number which is difficult enough to predict, without a constant pattern.