method
    
    ==
  
      v2_4_6 - 
      Show latest stable
 - 
    0 notes - 
    Class: Random
    
  
  
- 1_8_6_287
 - 1_8_7_72
 - 1_8_7_330
 - 1_9_1_378
 - 1_9_2_180 (0)
 - 1_9_3_125 (0)
 - 1_9_3_392 (0)
 - 2_1_10 (38)
 - 2_2_9 (0)
 - 2_4_6 (0)
 - 2_5_5 (0)
 - 2_6_3 (0)
 - What's this?
 
==(p1)
  public
  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) prng2 = Random.new(1234) prng1 == prng2 # => true prng1.rand # => 0.1915194503788923 prng1 == prng2 # => false prng2.rand # => 0.1915194503788923 prng1 == prng2 # => true

  
  
  