Function randomExponential

  • Returns a function for generating random numbers with an exponential distribution with the rate lambda; equivalent to time between events in a Poisson process with a mean of 1 / lambda.

    Parameters

    • lambda: number

      Expected time between events.

    Returns (() => number)

      • (): number
      • Returns a function for generating random numbers with an exponential distribution with the rate lambda; equivalent to time between events in a Poisson process with a mean of 1 / lambda.

        Returns number