Parameters
double
r
The number of successes (r) required to stop the experiment. Range: r ≥ 0.
double
p
The probability (p) of a trial resulting in success. Range: 0 ≤ p ≤ 1.
Random
randomSource
The random number generator which is used to draw random samples.