Function normal

  • normal(state: RngState, mean: number, sd: number): number
  • Generate a normally-distributed random number. If you just want the standard normal distribution (mean 0, sd 1), randomNormal is slightly faster

    Parameters

    • state: RngState

      Random number state

    • mean: number

      Mean

    • sd: number

      Standard deviation

    Returns number

Generated using TypeDoc