Skip to content

Instantly share code, notes, and snippets.

@vielhuber
Last active September 22, 2017 23:12
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 vielhuber/519405489837085bd257 to your computer and use it in GitHub Desktop.
Save vielhuber/519405489837085bd257 to your computer and use it in GitHub Desktop.
generate a random number between x and y being integers #js
~~(Math.random()*(y-x+1))+x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment