simulate_binomial

function simulate_binomial(n:Integer, ρ:Real) -> Integer

Simulate a binomial distribution.

  • n: Number of trials.
  • ρ: Probability of a true result.