Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 169 Bytes
module.exports = (lower, upper) => {
if (upper === undefined) {
upper = lower
lower = 0
}
return lower + Math.floor(Math.random() * (upper - lower + 1))
}