Last active
September 30, 2019 20:22
-
-
Save shapkarin/7830de2595bfec20fba86c445b984be8 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* getRandomNumberSeed(counter = 0, min = 0, max = 100) { | |
while (counter--) { | |
yield Math.floor(Math.random() * (max - min + 1)) + min | |
} | |
} | |
const seed = [...getRandomNumberSeed(10)]; | |
console.log(seed); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment