new

Random.new(seed = Random.new_seed) รข prng
Class Public methods

Creates a new PRNG using seed to set the initial state. If seed is omitted, the generator is initialized with ::new_seed.

See ::srand for more information on the use of seed values.

doc_ruby_on_rails
2015-05-01 00:08:20
Comments
Leave a Comment

Please login to continue.