Refactor randomNumber function

This commit is contained in:
SileNce5k 2021-08-07 23:50:58 +02:00
parent fd2ebd25f4
commit 2ac01e2ce1
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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);
}