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 oflongs that lack any pattern and are uniformly distributed. By default, an implementation ofRandomLongGeneratoris not thread-safe, and thus should not be shared among multiple threads. If aRandomLongGeneratorinstance 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 longnextLong()Get the next randomlong.-
Methods inherited from interface dev.nm.stat.random.rng.univariate.RandomNumberGenerator
nextDouble
-
-