Created
August 16, 2017 03:43
-
-
Save tonY1883/ff716a2dc9b29db88e296c19c062a8f2 to your computer and use it in GitHub Desktop.
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 randomItemFromArray(array){ | |
return array[Math.floor(Math.random()*array.length)]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment