The Discrete Uniform distribution is a discrete distribution bounded on [min, max] with constant probability at every value on or between the bounds. Sometimes called the discrete rectangular distribution, it arises when an event can have a finite and equally probable number of outcomes.
Generates a sample of the Discrete Uniform distribution in the interval [0, max], both 0 and max included! Is equivalent to uniform_discr(0, max). For more details see uniform_discr(int,int).
Name |
Type | Description |
max |
int | the maximum x value |
Type |
Description |
double |
the generated sample |
Generates a sample of the Discrete Uniform distribution on
the interval [min, max], both min and max included!
Name |
Type | Description |
min |
int | the minimum x value |
max |
int | the maximum x value |
Type |
Description |
double |
the generated sample |
Generates a sample of the Discrete Uniform distribution on
the interval [min, max] using the specified random number generator,
both 0 and max included! For more details see
uniform_discr(int,int).
Name |
Type | Description |
min |
int | the minimum x value |
max |
int | the maximum x value |
r |
java.util.Random | the random number generator |
Type |
Description |
double |
the generated sample |