Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Created May 14, 2019 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sethdavis512/48f2654df7b9e084e1c9011e35bc6732 to your computer and use it in GitHub Desktop.
Save sethdavis512/48f2654df7b9e084e1c9011e35bc6732 to your computer and use it in GitHub Desktop.
const pickRandom = (arr) => 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