D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Random
/
Filename :
seed-c.ri
back
Copy
U:RDoc::AnyMethod[iI" seed:ETI"Random::seed;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"EReturns the seed value used to initialize the Ruby system PRNG. ;TI"DThis may be used to initialize another generator with the same ;TI"Gstate at a later time, causing it to produce the same sequence of ;TI" numbers.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"Random.seed #=> 1234 ;TI"%prng1 = Random.new(Random.seed) ;TI"prng1.seed #=> 1234 ;TI"prng1.rand(100) #=> 47 ;TI"Random.seed #=> 1234 ;TI"Random.rand(100) #=> 47;T:@format0: @fileI" random.c;T:0@omit_headings_from_table_of_contents_below0I"Random.seed -> integer ;T0[ I"();T@FI"Random;TcRDoc::NormalClass00