Class RushCheck::StdGen
In: rushcheck/random.rb
Parent: Object

StdGen is a class (and the unique class) which includes RandomGen. This class provides a functional random number generator.

Methods

gen_next   gen_range   new   split   to_s  

Included Modules

RushCheck::RandomGen

Attributes

left  [R]  left and right are two seeds of random number generator.
right  [R]  left and right are two seeds of random number generator.

Public Class methods

Public Instance methods

gen_next returns an array with length 2. The first component of result is a random integer. The last component is a new StdGen object as a new random number generator. See also RandomGen.

gen_range returns an array with length 2 which represents a bound of generated random numbers.

split returns an array with length 2. The components are two new StdGen objects as two new random number generators.

[Validate]