Parameters
double
p
The success probability (p) in each trial. Range: 0 ≤ p ≤ 1.
int
n
The number of trials (n). Range: n ≥ 0.
Random
randomSource
The random number generator which is used to draw random samples.