Skip to content

Instantly share code, notes, and snippets.

@rumf
Created March 18, 2013 07:50
Show Gist options
  • Save rumf/5185663 to your computer and use it in GitHub Desktop.
Save rumf/5185663 to your computer and use it in GitHub Desktop.
function getRandomInt(min, max) {
return min + Math.floor(Math.random() * (max - min + 1));
}
@jobg-swk
Copy link

222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment