randomBernoulli

A function that can be used in Formulas.

Syntax and semantics

randomBernoulli (p)
generate a Bernoulli-distributed random deviate, which is 1 with probability p, and 0 with probability 1 − p.

Links to this page


© Paul Boersma 2023