randomIntWithLengthInRange

This commit is contained in:
ergenekonyigit
2018-01-13 20:13:37 +03:00
parent 0afd19a2c4
commit df745a9566
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,4 @@
module.exports = randomIntWithLengthInRange = (len, min, max) =>
Array.from({ length: len }, () =>
Math.floor(Math.random() * (max - min) + min)
);