• Returns a random number from a Bernoulli distribution.

    Parameters

    • Optional p: number = 0.5

      Probability value of distribution

    Returns number

    Example

    // Probability of flipping a coin heads or tails
    const bernoulliRandom = Chalkboard.numb.Bernoullian();

Generated using TypeDoc