rExponential

Function to generate random observation from standard exponential distribution.

  1. T rExponential()
  2. T rExponential(UniformRNG rng)
    T
    rExponential
    (
    T = double
    UniformRNG
    )
    (
    ref UniformRNG rng
    )
    if (
    isFloatingPoint!T &&
    isUniformRNG!UniformRNG
    )

Examples

auto x = rExponential() * 5;

Meta