|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface LinearCongruentialGenerator
A linear congruential generator (LCG) produces a sequence of pseudo-random numbers based on a linear recurrence relation.
LCGs are simple to understand and implement, but they should not be used for applications where high-quality randomness is critical. The higher quality pseudo-random generators available are, for instances, Mersenne twister and Multiply-with-carry.
However, if only a small number of random numbers are needed, e.g,. a few thousands, then this should be sufficient.
| Method Summary | |
|---|---|
long |
modulus()
Get the modulus of this linear congruential generator. |
int |
order()
Get the order of recursion. |
| Methods inherited from interface com.numericalmethod.suanshu.stats.random.RandomLongGenerator |
|---|
nextLong |
| Methods inherited from interface com.numericalmethod.suanshu.stats.random.RandomNumberGenerator |
|---|
nextDouble, seed |
| Method Detail |
|---|
int order()
long modulus()
m
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||