getRandomInt
// Example 1: Basic usage
console.log(getRandomInt(1, 10)); // might output 3
// Example 2: Specifying a negative range
console.log(getRandomInt(-5, 5)); // might output -2
// Example 3: Minimum and maximum are the same
console.log(getRandomInt(7, 7)); // will always output 7Last updated