method

new

v2_2_9 - Show latest stable - Class: Random
new(p1 = v1)
public

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

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