Created
November 28, 2018 16:07
-
-
Save AliwerErgashev/eb0cc697b3b8fe99a3b5c098002bcdd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randomArray(length, min, max) { | |
return new Array(length).fill(0).map(function(n) { | |
return Math.round(Math.random() * (max - min) + min); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment