Function randomUniform

  • Returns a function for generating random numbers with a uniform distribution. The minimum allowed value of a returned number is min (inclusive), and the maximum is max (exclusive). Min defaults to 0; if max is not specified, it defaults to 1.

    Parameters

    • Optional max: number

      The maximum allowed value of a returned number, defaults to 1.

    Returns (() => number)

      • (): number
      • Returns a function for generating random numbers with a uniform distribution. The minimum allowed value of a returned number is min (inclusive), and the maximum is max (exclusive). Min defaults to 0; if max is not specified, it defaults to 1.

        Returns number

  • Returns a function for generating random numbers with a uniform distribution. The minimum allowed value of a returned number is min (inclusive), and the maximum is max (exclusive).

    Parameters

    • min: number

      The minimum allowed value of a returned number.

    • max: number

      The maximum allowed value of a returned number.

    Returns (() => number)

      • (): number
      • Returns a function for generating random numbers with a uniform distribution. The minimum allowed value of a returned number is min (inclusive), and the maximum is max (exclusive).

        Returns number