Created
October 15, 2019 21:24
-
-
Save rjbultitude/2d097b8106db0d25a391a3e7f3d2b631 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 getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
function generateRandomNumbers(length) { | |
var numArray = []; | |
for (var i = 0; i < length; i++) { | |
numArray[i] = getRandomInt(1, 10000); | |
} | |
return numArray; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment