Skip to main content

Algorithm

洗牌算法 | Fisher-Yates

·1106 words·3 mins
从概率角度解释为什么“随机交换很多次”不等于均匀洗牌,并给出 Fisher-Yates 的正确实现。