Function random

  • Generates a random integer between min (inclusive) 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.