npm.nicfv.com

    Function runif

    • Generate a uniformly-distributed floating-point number within the range.

      Parameters

      • min: number

        The minimum bound

      • max: number

        The maximum bound

      Returns number

      A random float within the range

      const y = SMath.runif(-2, 2); // 0.376...
      
    MMNEPVFCICPMFPCPTTAAATR