Returns a random number from a Bernoulli distribution.
Optional
Probability value of distribution
// Probability of flipping a coin heads or tailsconst bernoulliRandom = Chalkboard.numb.Bernoullian(); Copy
// Probability of flipping a coin heads or tailsconst bernoulliRandom = Chalkboard.numb.Bernoullian();
Generated using TypeDoc
Returns a random number from a Bernoulli distribution.