Last active
August 29, 2015 14:05
-
-
Save CYBAI/1018530896fb414ed083 to your computer and use it in GitHub Desktop.
Get random value between two values
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
/** | |
* This function generates a random Integer between two numbers min and max. | |
*/ | |
function (min, max) { | |
return Math.floor(Math.random() * max) + min; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment