prng1 == prng2 â true or false
Instance Public methods
Returns true if the two generators have the same internal state, otherwise
false. Equivalent generators will return the same sequence of
pseudo-random numbers. Two generators will generally have the same state
only if they were initialized with the same seed
Random.new == Random.new # => false
Random.new(1234) == Random.new(1234) # => true
and have the same invocation history.
prng1 = Random.new(1234)
prng