function randomArray(sizeOf) {
arr = [];
for (let i = 0; i < sizeOf; i++) {
arr.push(Math.floor(Math.random() * 100));
}
return arr;
}
Last active
January 25, 2023 04:10
-
-
Save scriptkkiddie/c9b4204b3e438166fe8b57563e9f97a1 to your computer and use it in GitHub Desktop.
Random Array Generator with JavaScript
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment