const arr = ['a', 'b', 'c'];
arr[~~(Math.random() * arr.length)];
arr[Math.random() * arr.length | 0];
arr[Math.floor(Math.random() * arr.length)];