public abstract class RandomNumberGenerator
extends java.lang.Object
Usually only one RNG object is used in a simulation. Therefore a global RNG
is created that can be accessed by the static member function
getSystemRNG()
of RandomNumberGenerator.
Several standard RNGs are provided.
Modifier and Type | Field and Description |
---|---|
protected static RandomNumberGenerator |
SYSTEM_RNG |
Constructor and Description |
---|
RandomNumberGenerator() |
Modifier and Type | Method and Description |
---|---|
static RandomNumberGenerator |
getSystemRNG() |
abstract double |
next() |
static void |
setSystemRNG(RandomNumberGenerator rng) |
protected static RandomNumberGenerator SYSTEM_RNG
public static RandomNumberGenerator getSystemRNG()
public static void setSystemRNG(RandomNumberGenerator rng)
public abstract double next()