The minimum value of the range (inclusive). Default is 1.
The maximum value of the range (inclusive). Default is 10.
A random integer within the specified range.
const randomNum = getRandomInt(5, 20);
console.log(randomNum); // Random integer between 5 and 20 (inclusive)
Generated using TypeDoc
Generates a random integer within the specified range.