UNPKG

@skeet-framework/utils

Version:

Skeet Framework Plugin - Utils

13 lines (12 loc) 481 B
/** * Generates a random integer within the specified range. * * @param min - The minimum value of the range (inclusive). Default is 1. * @param max - The maximum value of the range (inclusive). Default is 10. * @returns A random integer within the specified range. * * @example * const randomNum = getRandomInt(5, 20); * console.log(randomNum); // Random integer between 5 and 20 (inclusive) */ export declare const getRandomInt: (min?: number, max?: number) => number;