0
GGGiovanny Gongora
Gets a random element from an array.
0 Comments
const sample = (arr: number[]) => arr[Math.floor(Math.random() * arr.length)];