Example usage for Java org.apache.commons.math3.random RandomDataGenerator fields, constructors, methods, implement or subclass
The text is from its open source code.
RandomDataGenerator() Construct a RandomDataGenerator, using a default random generator as the source of randomness. | |
RandomDataGenerator(RandomGenerator rand) Construct a RandomDataGenerator using the supplied RandomGenerator as the source of (non-secure) random data. |
int | nextBinomial(int numberOfTrials, double probabilityOfSuccess) Generates a random value from the BinomialDistribution Binomial Distribution . |
double | nextExponential(double mean) Algorithm Description: Uses the Algorithm SA (Ahrens) from p. |
double | nextGaussian(double mu, double sigma) |
int | nextInt(int lower, int upper) |
long | nextLong(long lower, long upper) |
int[] | nextPermutation(int n, int k) Uses a 2-cycle permutation shuffle. |
long | nextPoisson(double mean) Algorithm Description:
|
double | nextUniform(double lower, double upper, boolean lowerInclusive) Algorithm Description: if the lower bound is excluded, scales the output of Random.nextDouble(), but rejects 0 values (i.e., will generate another random double if Random.nextDouble() returns 0). |
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 | reSeed(long seed) Reseeds the random number generator with the supplied seed. |