• Returns a random number that between the value range

    Parameters

    • OptionalminValue: number

      the min value, inclusive

    • OptionalmaxValue: number

      the max value, exclusive

    Returns number | undefined

    a random number that between the value range

    randomNumber(1.1, 1.2);
    randomNumber(-3.6, 2.8);
    randomNumber(-3.6, -2.8);