Java org.apache.commons.math.random RandomDataImpl fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math.random RandomDataImpl fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math.random RandomDataImpl.

The text is from its open source code.

Constructor

RandomDataImpl()
Construct a RandomDataImpl.
RandomDataImpl(RandomGenerator rand)
Construct a RandomDataImpl using the supplied RandomGenerator as the source of (non-secure) random data.

Method

doublenextCauchy(double median, double scale)
Generates a random value from the CauchyDistributionImpl Cauchy Distribution .
doublenextGaussian(double mu, double sigma)
Generate a random value from a Normal (a.k.a.
StringnextHexString(int len)

Algorithm Description: hex strings are generated using a 2-step process.

intnextInt(int lower, int upper)
Generate a random int value uniformly distributed between lower and upper, inclusive.
longnextLong(long lower, long upper)
Generate a random long value uniformly distributed between lower and upper, inclusive.
intnextSecureInt(int lower, int upper)
Generate a random int value uniformly distributed between lower and upper, inclusive.
doublenextUniform(double lower, double upper)

Algorithm Description: scales the output of Random.nextDouble(), but rejects 0 values (i.e., will generate another random double if Random.nextDouble() returns 0).

voidsetSecureAlgorithm(String algorithm, String provider)
Sets the PRNG algorithm for the underlying SecureRandom instance using the Security Provider API.