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
public interface RandomLongGenerator extends RandomNumberGenerator
A (pseudo) random number generator that generates a sequence oflong
s that lack any pattern and are uniformly distributed. By default, an implementation ofRandomLongGenerator
is not thread-safe, and thus should not be shared among multiple threads. If aRandomLongGenerator
instance is used in a multi-threaded program, for example, useRandomLongGenerator uniform = RandomNumberGenerators.synchronizedRLG(new MersenneTwister());
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
nextLong()
Get the next randomlong
.-
Methods inherited from interface dev.nm.stat.random.rng.univariate.RandomNumberGenerator
nextDouble
-
-