It's always the same operations, for each random number generated, but since it saves the last number generated, you get different numbers back. But it's close enough for things like this. Because it's just math being done the same way every time, it's not REALLY random. ![]() ![]() (Traditionally you just use the current time as the seed)īasically a random number generator works by taking some number, doing a bunch of mathematical operations on it, and then saving the result for the next use (there's a bit more to it than this to make it less predictable, but this is the basic theory). It's used to initialize the random number generator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |