codetrix - v1.5.0
    Preparing search index...

    Function randomInt

    • Generates a random integer between the given min and max (inclusive).

      Parameters

      • min: number

        The minimum value (inclusive).

      • max: number

        The maximum value (inclusive).

      Returns number

      A random integer between min and max.

      randomInt(1, 10); // Might return 4