Class RNGUtils


  • public class RNGUtils
    extends Object
    Provides static methods that wraps random number generators to produce synchronized generators. For example,
    RandomNumberGenerator rng = RngUtils.synchronizedRNG(new Gaussian());
    or
    RandomLongGenerator uniform = RngUtils.synchronizedRLG(new MersenneTwister());