Random numbers are never random. They are completely predetermined and, given the same seed, will always have the same numbers, even more than a million different runs of commands, so they are called "pseudo-random" . It is best to make seeds with a value that will differ each time the program starts and cannot be easily predicted, for example, the current time and date and / or the number of clock cycles passed.
source
share