Function randomLogNormal

  • Returns a function for generating random numbers with a log-normal distribution. The expected value of the random variable’s natural logarithm is mu, with the given standard deviation sigma. If mu is not specified, it defaults to 0; if sigma is not specified, it defaults to 1.

    Parameters

    • Optional mu: number

      Expected value, defaults to 0.

    • Optional sigma: number

      Standard deviation, defaults to 1.

    Returns (() => number)

      • (): number
      • Returns a function for generating random numbers with a log-normal distribution. The expected value of the random variable’s natural logarithm is mu, with the given standard deviation sigma. If mu is not specified, it defaults to 0; if sigma is not specified, it defaults to 1.

        Returns number