public interface LinearCongruentialGenerator extends RandomLongGenerator
MersenneTwister
and MWC8222
.
If, however, only a small number of random numbers are needed, e.g,. a few thousands,
then an LCG should be sufficient.Modifier and Type | Method and Description |
---|---|
long |
modulus()
Get the modulus of this linear congruential generator.
|
int |
order()
Get the order of recursion.
|
nextLong
nextDouble
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.