Scythe-1.0.3
template<class RNGTYPE>
unsigned int scythe::rng< RNGTYPE >::rbinom ( unsigned int  n,
double  p 
) [inline]

Generate a binomial distributed random variate.

This function returns a pseudo-random variate drawn from the binomial distribution with n trials and probability of success on each trial.

Parameters:
nThe number of trials.
pThe probability of success on each trial.
See also:
pbinom(double x, unsigned int n, double p)
dbinom(double x, unsigned int n, double p)
Exceptions:
scythe_invalid_arg(Level 1)