cpp/numeric/random/binomial distribution

Produces random non-negative integer values $i$, distributed according to discrete probability function:



The value obtained is the number of successes in a sequence of $t$ yes/no experiments, each of which succeeds with probability $p$.

satisfies