0
Difference between rand and srand
what do u mean by random and truly random
1 Answer
+ 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.