@s-libs/micro-dash
    Preparing search index...

    Function random

    • Produces a random number between the inclusive lower and upper bounds. If only one argument is provided a number between 0 and the given number is returned. If floating is true, or either lower or upper are floats, a floating-point number is returned instead of an integer.

      Differences from lodash:

      • does not coerce arguments into finite numbers. E.g. if you supply NaN or Infinity, results are not guaranteed.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 2,740 bytes
      • Micro-dash: 380 bytes

      Parameters

      • Optionalfloating: boolean

      Returns number

    • Produces a random number between the inclusive lower and upper bounds. If only one argument is provided a number between 0 and the given number is returned. If floating is true, or either lower or upper are floats, a floating-point number is returned instead of an integer.

      Differences from lodash:

      • does not coerce arguments into finite numbers. E.g. if you supply NaN or Infinity, results are not guaranteed.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 2,740 bytes
      • Micro-dash: 380 bytes

      Parameters

      • upper: number
      • Optionalfloating: boolean

      Returns number

    • Produces a random number between the inclusive lower and upper bounds. If only one argument is provided a number between 0 and the given number is returned. If floating is true, or either lower or upper are floats, a floating-point number is returned instead of an integer.

      Differences from lodash:

      • does not coerce arguments into finite numbers. E.g. if you supply NaN or Infinity, results are not guaranteed.

      Contribution to minified bundle size, when it is the only function imported:

      • Lodash: 2,740 bytes
      • Micro-dash: 380 bytes

      Parameters

      • lower: number
      • upper: number
      • Optionalfloating: boolean

      Returns number