method

new

v2_5_5 - Show latest stable - Class: Random
new(*args)
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.