Skip to content

Instantly share code, notes, and snippets.

@ianldgs
Created June 8, 2015 23:04
Show Gist options
  • Save ianldgs/0c289e0cc719111a0821 to your computer and use it in GitHub Desktop.
Save ianldgs/0c289e0cc719111a0821 to your computer and use it in GitHub Desktop.
function rand(min,max) {
return Math.floor(Math.random()*(max-min+1)+min);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment