Skip to content

Instantly share code, notes, and snippets.

@CYBAI
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CYBAI/1018530896fb414ed083 to your computer and use it in GitHub Desktop.
Save CYBAI/1018530896fb414ed083 to your computer and use it in GitHub Desktop.
Get random value between two values
/**
* 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