Interface RandomLongGenerator
- All Superinterfaces:
RandomNumberGenerator
,Seedable
- All Known Subinterfaces:
LinearCongruentialGenerator
- All Known Implementing Classes:
CompositeLinearCongruentialGenerator
,ConcurrentCachedRLG
,LEcuyer
,Lehmer
,MersenneTwister
,MRG
,MWC8222
,SHR0
,SHR3
,ThreadIDRLG
,UniformRNG
A (pseudo) random number generator that generates a sequence of
long
s that lack any pattern and are uniformly distributed.
By default, an implementation of RandomLongGenerator
is
not thread-safe, and thus should not be shared among multiple threads.
If a RandomLongGenerator
instance is used in a multi-threaded
program, for example, use
RandomLongGenerator uniform = RandomNumberGenerators.synchronizedRLG(new MersenneTwister());
-
Method Summary
Methods inherited from interface dev.nm.stat.random.rng.univariate.RandomNumberGenerator
nextDouble
-
Method Details
-
nextLong
long nextLong()Get the next randomlong
.- Returns:
- the next random
long
-