Last active
August 2, 2018 07:38
-
-
Save andreyshr/4378ffacea2e66822b64604dfe051852 to your computer and use it in GitHub Desktop.
randomNumber(min, max)
This file contains hidden or 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 randomNumber(min, max) { | |
return min + Math.floor(Math.random() * (max + 1 - min)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment