rNormal

Function to generate random observationb from standard normal distribution.

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

Examples

auto x = rNormal() * 5 + 1;

Meta