Refactor randomNumber function
This commit is contained in:
parent
fd2ebd25f4
commit
2ac01e2ce1
1 changed files with 1 additions and 3 deletions
|
@ -1,3 +1 @@
|
||||||
module.exports = function (min, max) {
|
module.exports = (min,max) => Math.floor(Math.random() * (max - min + 1) + min);
|
||||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue