Skip to content

Instantly share code, notes, and snippets.

@paulakreuger
Last active August 29, 2015 13:57
Show Gist options
  • Save paulakreuger/9779514 to your computer and use it in GitHub Desktop.
Save paulakreuger/9779514 to your computer and use it in GitHub Desktop.
Get a random number
/*
==GET A RANDOM NUMBER
-----------------------------------------------------*/
function randomNumber(min, max) {
return Math.ceil(Math.random() * (max - min) + min);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment