npm.nicfv.com

    Function rnorm

    • Generate a normally-distributed floating-point number.

      Parameters

      • mean: number = 0

        The mean of the population distribution

      • stdev: number = 1

        The standard deviation of the population

      Returns number

      A random float

      const y = SMath.rnorm(2, 3); // 1.627...
      
    MMNEPVFCICPMFPCPTTAAATR