Guest User

Untitled

a guest
May 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. const sample = arr => arr[Math.floor(Math.random() * arr.length)];
  2. // sample([3, 7, 9, 11]) -> 9
Add Comment
Please, Sign In to add comment