drasys.or.prob
Interface RandomI

All Known Implementing Classes:
BaysDurhamShuffle, LinearCongruential, MultiplicativeCongruential

public interface RandomI

The interface used by algorithms to access uniform random number generators.

See Also:
ParkerMillerMC, BaysDurhamShuffle

Method Summary
 long next()
          Gets the next number from the generator.
 double nextDouble()
          Gets the next double value from the generator.
 void setSeed(long seed)
          Sets the seed for the random number generator.
 int sizeOfBits()
          Gets the number of valid bits in a long value returned from the generator.
 

Method Detail

setSeed

public void setSeed(long seed)
Sets the seed for the random number generator.

sizeOfBits

public int sizeOfBits()
Gets the number of valid bits in a long value returned from the generator.

next

public long next()
Gets the next number from the generator.

nextDouble

public double nextDouble()
Gets the next double value from the generator.
Returns:
a value between 0.0 and 1.0;


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com