Created
February 2, 2017 18:19
-
-
Save zrobit/67cc5fa81194b78e91aff71b52bd15bf to your computer and use it in GitHub Desktop.
Random Two values
This file contains hidden or 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 randomTwoValues(val1, val2){ | |
return Math.random() < 0.5 ? val1 : val2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment