|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.prob.MultiplicativeCongruential
An implementation of the Parker and Miller minimal standard multiplicative congruential random number generator.
LinearCongruential
,
References:
The Art of Computer Programming: Seminumerical Algorithms (Vol 2, 3rd Ed)
Donald Ervin Knuth; Hardcover
Numerical Recipes in C : The Art of Scientific Computing
William H. Press, et al / Hardcover / Published 1993
Probability and Statistics
Morris H. Degroot / Hardcover / Published 1986
Mathematical Statistics With Applications
Dennis D. Wackerly, et al / Hardcover / Published 1996
, Serialized FormConstructor Summary | |
MultiplicativeCongruential()
|
|
MultiplicativeCongruential(long seed)
|
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public MultiplicativeCongruential()
public MultiplicativeCongruential(long seed)
Method Detail |
public void setSeed(long seed)
public double nextDouble()
public int sizeOfBits()
public long next()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |