Function randomIrwinHall

  • Returns a function for generating random numbers with an Irwin–Hall distribution with n independent variables. If the fractional part of n is non-zero, this is treated as adding d3.randomUniform() times that fractional part to the integral part.

    Parameters

    • n: number

      Number of independent random variables to use.

    Returns (() => number)

      • (): number
      • Returns a function for generating random numbers with an Irwin–Hall distribution with n independent variables. If the fractional part of n is non-zero, this is treated as adding d3.randomUniform() times that fractional part to the integral part.

        Returns number