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