7 lines
127 B
JavaScript
7 lines
127 B
JavaScript
function between (min, max) {
|
|
return Math.floor(
|
|
Math.random() * (max - min) + min
|
|
)
|
|
}
|
|
|
|
module.exports = between
|