Skip to content

Instantly share code, notes, and snippets.

@andreyshr
Last active August 2, 2018 07:38
Show Gist options
  • Save andreyshr/4378ffacea2e66822b64604dfe051852 to your computer and use it in GitHub Desktop.
Save andreyshr/4378ffacea2e66822b64604dfe051852 to your computer and use it in GitHub Desktop.
randomNumber(min, max)
function randomNumber(min, max) {
return min + Math.floor(Math.random() * (max + 1 - min));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment