Example usage for Java org.apache.commons.math.random RandomDataImpl fields, constructors, methods, implement or subclass
The text is from its open source code.
RandomDataImpl() Construct a RandomDataImpl. | |
RandomDataImpl(RandomGenerator rand) Construct a RandomDataImpl using the supplied RandomGenerator as the source of (non-secure) random data. |
double | nextCauchy(double median, double scale) Generates a random value from the CauchyDistributionImpl Cauchy Distribution . |
double | nextGaussian(double mu, double sigma) Generate a random value from a Normal (a.k.a. |
String | nextHexString(int len) Algorithm Description: hex strings are generated using a 2-step process. |
int | nextInt(int lower, int upper) Generate a random int value uniformly distributed between lower and upper , inclusive. |
long | nextLong(long lower, long upper) Generate a random long value uniformly distributed between lower and upper , inclusive. |
int | nextSecureInt(int lower, int upper) Generate a random int value uniformly distributed between lower and upper , inclusive. |
double | nextUniform(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). |
void | setSecureAlgorithm(String algorithm, String provider) Sets the PRNG algorithm for the underlying SecureRandom instance using the Security Provider API. |