• Returns a random number from an exponential distribution.

    Parameters

    • Optional l: number = 1

      Rate parameter (lambda) of distribution

    Returns number

    Example

    // Smaller argument means a more uniform distribution
    const expRandom = Chalkboard.numb.exponential(0.1);

Generated using TypeDoc