Example usage for Java org.apache.commons.math.random RandomData fields, constructors, methods, implement or subclass
The text is from its open source code.
double | nextGaussian(double mu, double sigma) Generates a random value from the Normal (or Gaussian) distribution with the given mean and standard deviation. |
int | nextInt(int lower, int upper) Generates a uniformly distributed random integer between lower and upper (endpoints included). |
long | nextLong(long lower, long upper) Generates a uniformly distributed random long integer between lower and upper (endpoints included). |
long | nextPoisson(double mean) Generates a random value from the Poisson distribution with the given mean. |
Object[] | nextSample(Collection> c, int k) Returns an array of k objects selected randomly from the Collection c . |
double | nextUniform(double lower, double upper) Generates a uniformly distributed random value from the open interval ( lower ,upper ) (i.e., endpoints excluded). |