shuffle:Fisher-Yates shuffle洗牌算法

时间:2024-06-13 14:19:23
【文件属性】:

文件名称:shuffle:Fisher-Yates shuffle洗牌算法

文件大小:1KB

文件格式:ZIP

更新时间:2024-06-13 14:19:23

JavaScript

Fisher-Yates shuffle洗牌算法 执行node shuffle.js运行 生成100000个数组[0,1,2,3,4,5,6,7,8,9],使用洗牌算法洗牌,计算每个数出现的各个位置的概率 [ '9.93% | 10.10% | 9.94% | 9.91% | 9.93% | 9.89% | 10.10% | 10.06% | 10.13% | 10.02%', '10.11% | 9.93% | 10.04% | 9.95% | 10.01% | 9.91% | 10.07% | 10.01% | 9.93% | 10.05%', '10.19% | 9.99% | 9.94% | 9.90% | 10.02% | 10.00%


【文件预览】:
shuffle-master
----shuffle.js(900B)
----README.md(3KB)

网友评论