Function randomExponential

  • randomExponential(state: RngState): number
  • Generate a exponentially distributed random number from the standard distribution (rate or scale of 1). Use exponential to generate values with different rates. The approach uses inversion which is unlikely to be the fastest approach, but it's unlikely that this will slow much down.

    Parameters

    Returns number

Generated using TypeDoc