Parameters
int
shape
The shape (k) of the Erlang distribution. Range: k ≥ 0.
double
rate
The rate or inverse scale (λ) of the Erlang distribution. Range: λ ≥ 0.
Random
randomSource
The random number generator which is used to draw random samples.