All Packages Class Hierarchy This Package Previous Next Index
Class simula.random.RandomEngineLEcuyer
java.lang.Object
|
+----simula.random.RandomEngine
|
+----simula.random.RandomEngineLEcuyer
- public class RandomEngineLEcuyer
- extends RandomEngine
Implements "two sequences" L'Ecuyer generator
with Bays-Durham shuffle.
This is made possible by Java 64 bit arithmethic.
-
RandomEngineLEcuyer()
- Creates a new engine using system time as the seed
-
RandomEngineLEcuyer(long)
-
Creates a new engine with the given seed.
-
nextByte()
-
Return the next byte from this engine
-
setSeed(long)
- Resets the seed for this engine
RandomEngineLEcuyer
public RandomEngineLEcuyer()
- Creates a new engine using system time as the seed
RandomEngineLEcuyer
public RandomEngineLEcuyer(long seed) throws IllegalArgumentException
- Creates a new engine with the given seed.
- Parameters:
- seed - initial seed for the generator (shouldn't be NULL).
nextByte
public byte nextByte()
- Return the next byte from this engine
- Returns:
- next byte from engine
- Overrides:
- nextByte in class RandomEngine
setSeed
public void setSeed(long seed) throws IllegalArgumentException
- Resets the seed for this engine
- Parameters:
- seed - Engine seed
All Packages Class Hierarchy This Package Previous Next Index