"new"
$prng1 = Math::Random::OO::Uniform->new();
$prng2 = Math::Random::OO::Uniform->new($high);
$prng3 = Math::Random::OO::Uniform->new($low,$high);
"new" takes up to two optional parameters and returns a new "Math::Random::OO::Uniform" object. With no
parameters, the object generates random numbers in the range of zero (inclusive) to one (exclusive).
With a single parameter, the object generates random numbers from zero (inclusive) to the value of the
parameter (exclusive). Note, the object does this with multiplication, so if the parameter is negative,
the function will return negative numbers. This is a feature or bug, depending on your point of view.
With two parameters, the object generates random numbers from the first parameter (inclusive) to the
second parameter (exclusive). (Actually, as long as you have two parameters, "new" will put them in the
right order).
"seed"
$rv = $prng->seed( @seeds );
This method seeds the random number generator. At the moment, only the first seed value matters. It
should be a positive integer.
"next"
$rnd = $prng->next();
This method returns the next random number from the random number generator. It does not take any
parameters.