Optional
lower: numberThe lower bound. (Must be an integer)
Optional
upper: numberThe upper bound. (Must be an integer)
Returns a random integer.
0.4.2
randomInt()
// => 0 or 1
randomInt(2)
// => an integer between 0 and 2
randomInt(1, 2)
// => an integer between 1 and 2
Get a random integer between the inclusive bounds.