Created
October 13, 2016 18:25
-
-
Save andrewbonnington/0283bd7719086722df64d51427eb778e to your computer and use it in GitHub Desktop.
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 getRandomElement(arr) { | |
| return arr[Math.floor(Math.random() * arr.length)]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment