public interface RandomLongGenerator extends RandomNumberGenerator
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());
Modifier and Type | Method and Description |
---|---|
long |
nextLong()
Get the next random
long . |
nextDouble
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.