Defined in header <random> template< class IntType = int >
class binomial_distribution; (since C++11)
Produces random non-negative integer values i, distributed according to discrete probability function: P(i|t,p) =
⎛⎜⎝ti⎞⎟⎠ · pi · (1 − p)t−i
The value obtained is the number of successes in a sequence of t yes/no experiments, each of which succeeds with probability p.
std::binomial_distribution satisfies RandomNumberDistribution.
Template parameters
IntType