js & array & shuffle
const list = [1, 2, 3, 4, 5, 6, 7, 8, 9];
list.sort(() => Math.random() - 0.5)...[9, 8, 5, 7, 6, 1, 3, 2, 4]
list.sort(() => Math.random() - 0.5)
(9) [1, 5, 7, 8, 6, 9, 2, 4, 3]
Array.sort...()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort
refs
https...://flaviocopes.com/how-to-shuffle-array-javascript/