math docs
    Preparing search index...

    Function int

    • Returns a random integer in the range [min, max] (inclusive).

      Parameters

      • random: RandomGenerator

        the random generator to use

      • min: number

        the minimum value (inclusive)

      • max: number

        the maximum value (inclusive)

      Returns number