📅  最后修改于: 2022-03-11 14:47:31.353000             🧑  作者: Mango
function shuffle(arr) {
for (let i=arr.length - 1; i > 0; i--) {
let j = Math.floor(Math.random()*(i+1));
[arr[i], arr[j]] = [arr[j], arr[i]];
}
}