Class JDKRandomWrapper

  • All Implemented Interfaces:
    UniformRandomProvider

    public final class JDKRandomWrapper
    extends Object
    implements UniformRandomProvider
    Wraps a Random instance to implement UniformRandomProvider. All methods from the Random that match those in UniformRandomProvider are used directly.

    This class can be used to wrap an instance of SecureRandom. The SecureRandom class provides cryptographic random number generation. The features available depend on the Java version and platform. Consult the Java documentation for more details.

    Note: Use of java.util.Random is not recommended for applications. There are many other pseudo-random number generators that are statistically superior and often faster (see RandomSource).

    Since:
    1.3
    See Also:
    SecureRandom, RandomSource