Created
June 19, 2018 07:00
-
-
Save ssougnez/fa2df1c485131d9a9653199d54d75d88 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 *random(min, max) { | |
while (true) { | |
yield parseInt((Math.random() * max) + min); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment