Created
September 17, 2013 15:32
-
-
Save scottmagdalein/6595985 to your computer and use it in GitHub Desktop.
Should return random number between 1 and 3.
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() { | |
var num = Math.floor((Math.random()*3)+1); | |
return num; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment