Get a random integer within an inclusive range
a random integer between the bounds
const value = randomInt(-10, 10)// value >= -10// value <= 10// Math.round(value) === value
the lower bound of the range
the upper bound of the range
Generated using TypeDoc
Get a random integer within an inclusive range
Returns
a random integer between the bounds
Example