Created
May 18, 2013 05:51
-
-
Save RafeHatfield/5603386 to your computer and use it in GitHub Desktop.
quick js randomizer
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
if (Math.floor(Math.random()*2) == 1) { | |
alert('foo') | |
} else { | |
alert('bar') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment