function shuffle(array) { array.sort(() => Math.random() - 0.5); }
const numbers = [1, 2, 3]; shuffle(numbers);
출처 : https://7942yongdae.tistory.com/96