• Returns a random integer that between value range

    Parameters

    • OptionalminValue: number

      the min value, inclusive

    • OptionalmaxValue: number

      the max value, exclusive

    Returns number | undefined

    a random integer that between value range

    randomInteger(1, 10);
    randomInteger(-6, 8);