Created
October 19, 2016 14:08
-
-
Save srs/8d00d03b89cdb91fa687c0b27b6e1bbc to your computer and use it in GitHub Desktop.
PurpleJS Blob - Snippet 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getRandom(max) { | |
return Math.floor((Math.random() * max) + 1) | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment