# 如何实现一个数组洗牌函数 shuffle

Issue

欢迎在 Issue 中交流与讨论: Issue 455 (opens new window)

const shuffle = (list) => list.sort((x, y) => Math.random() - 0.5)
Last Updated: 1/17/2021, 2:02:56 PM