@yesstudio/yes-utils
    Preparing search index...

    Function getRandomInteger

    • Returns a random integer between the specified minimum and maximum values (inclusive).

      Parameters

      • min: number

        The minimum value.

      • max: number

        The maximum value.

      Returns number

      Returns the random integer between the specified minimum and maximum values (inclusive).

      getRandomInteger(-100, 100)
      // => Random integer between -100 and 100 (inclusive)