Parameters
int n
The number of Bernoulli trials n - n is a positive integer
double a
Shape parameter alpha of the Beta distribution. Range: a > 0.
double b
Shape parameter beta of the Beta distribution. Range: b > 0.
Random randomSource
The random number generator which is used to draw random samples.