srand(number = Random.new_seed) â old_seed
Instance Public methods
Seeds the system pseudo-random number generator, Random::DEFAULT, with
number. The previous seed value is returned.
If number is omitted, seeds the generator using a source of
entropy provided by the operating system, if available (/dev/urandom on
Unix systems or the RSA cryptographic provider on Windows), which is then
combined with the time, the process id, and a sequence number.
srand may be used to ensure repe