U:RDoc::AnyMethod[iI"==:ETI"Random#==;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"PReturns true if the two generators have the same internal state, otherwise ;TI"Dfalse. Equivalent generators will return the same sequence of ;TI"Opseudo-random numbers. Two generators will generally have the same state ;TI"5only if they were initialized with the same seed;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"5Random.new == Random.new # => false ;TI"4Random.new(1234) == Random.new(1234) # => true ;T: @format0o; ; [I"*and have the same invocation history.;T@o; ; [I"prng1 = Random.new(1234) ;TI"prng2 = Random.new(1234) ;TI"prng1 == prng2 # => true ;TI" ;TI",prng1.rand # => 0.1915194503788923 ;TI"prng1 == prng2 # => false ;TI" ;TI",prng2.rand # => 0.1915194503788923 ;TI"prng1 == prng2 # => true;T; 0: @fileI" random.c;T:0@omit_headings_from_table_of_contents_below0I"%prng1 == prng2 -> true or false ;T0[I" (p1);T@$FI" Random;FcRDoc::NormalClass00