Random

class Random

Parent:
Object
Included modules:
Random::Formatter

Random provides an interface to Ruby's pseudo-random number generator, or PRNG- The PRNG produces a deterministic sequence of bits which approximate true randomness- The sequence may be represented by integers, floats, or binary strings-

The generator may be initialized with either a system-generated or user-supplied seed value by using ::srand.

The class method #rand provides the base functionality of Kernel#rand along with better han