simulate_bernoulli

function simulate_bernoulli(ρ:Real) -> Boolean

Simulate a Bernoulli distribution.

  • ρ: Probability of a true result.