Skip to main content

randomNum

Callable

  • randomNum(min?: number, max?: number): number

  • Generates a random number within a specified range.


    Parameters

    • optionalmin: number = 0

      The lower bound of the range (default: 0).

    • optionalmax: number = ...

      The upper bound of the range (default: Number.MAX_SAFE_INTEGER - 1).

    Returns number

    A random number within the specified range.