cpp/numeric/random/bernoulli distribution

Produces random boolean values, according to the discrete probability function. The probability of is


 * $P(b|p) =${{mparen|{||$p$, if $b$ is |$1 − p$, if $b$ is {{co|false}}|style=text-align:right}}

satisfies