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.


Constructor Index

 o RandomEngineLEcuyer()
Creates a new engine using system time as the seed
 o RandomEngineLEcuyer(long)
Creates a new engine with the given seed.

Method Index

 o nextByte()
Return the next byte from this engine
 o setSeed(long)
Resets the seed for this engine

Constructors

 o RandomEngineLEcuyer
 public RandomEngineLEcuyer()
Creates a new engine using system time as the seed

 o 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).

Methods

 o nextByte
 public byte nextByte()
Return the next byte from this engine

Returns:
next byte from engine
Overrides:
nextByte in class RandomEngine
 o 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