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

    Returns

    A random integer between the specified minimum and maximum values.

    Example

    const randomInt = getRandomInt(1, 10);
    console.log(randomInt); // Outputs a random integer between 1 and 10

    Parameters

    • minProp: number

      The minimum value (inclusive) of the range.

    • maxProp: number

      The maximum value (inclusive) of the range.

    Returns number