+
Point of view
All features
class MINIMAL_RANDOM_NUMBER_GENERATOR
Summary
Implements the Minimal Standard generator from Press et. al. Numerical Recipes.
Direct parents
Inherit list: RANDOM_NUMBER_GENERATOR
Known children
Inherit list: PRESS_RANDOM_NUMBER_GENERATOR
Insert list: PRESS_RANDOM_NUMBER_GENERATOR
Class invariant
Overview
Creation features
{ANY}
• make
Create (or reset) the random number generator with an automatic randomised setting of the seed_value based on the CPU clock.
• with_seed (seed_value: INTEGER_32)
Create (or reset) the random number generator with an explicit seed_value.
Features
{}
{ANY}
• make
Create (or reset) the random number generator with an automatic randomised setting of the seed_value based on the CPU clock.
• with_seed (seed_value: INTEGER_32)
Create (or reset) the random number generator with an explicit seed_value.
• next
Prepare the next random number in sequence.
• last_real: REAL_64
The last computed number in range 0.0 to 1.0 excluded (see ensure).
• last_integer (n: INTEGER_32): INTEGER_32
The last computed number in range 1 to n(see ensure).
{}
is 2147483647
constant attribute
{}
is 16807
constant attribute
{}
is 127773
constant attribute
{}
is 2836
constant attribute
{}
seed: INTEGER_32
writable attribute
{}
make
effective procedure
{ANY}
Create (or reset) the random number generator with an automatic randomised setting of the seed_value based on the CPU clock.
with_seed (seed_value: INTEGER_32)
effective procedure
{ANY}
Create (or reset) the random number generator with an explicit seed_value.
next
effective procedure
{ANY}
Prepare the next random number in sequence.
last_real: REAL_64
effective function
{ANY}
The last computed number in range 0.0 to 1.0 excluded (see ensure).
last_integer (n: INTEGER_32): INTEGER_32
effective function
{ANY}
The last computed number in range 1 to n(see ensure).
clock_based_random_seed: INTEGER_32
effective function
{}
Some positive random value to be used as a seed which may change as much as possible in a random way.