摘要: export function shuffle(source) { const arr = source.slice() for (let i = 0; i < arr.length; i++) { const j = getRandomInt(i) swap(arr, i, j) } return 阅读全文
posted @ 2021-06-10 20:53 1点 阅读(135) 评论(0) 推荐(0) 编辑