public interface RandomNumberGenerator extends Seedable
RandomNumberGenerator is
not thread-safe, and thus should not be shared among multiple threads.
If a RandomNumberGenerator instance is used in a multi-threaded
program, for example, use
RandomNumberGenerator rng = RandomNumberGenerators.synchronizedRNG(new Gaussian());
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Get the next random
double. |
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.