1
hahastudio 2014 年 8 月 25 日 Fisher-Yates shuffle
http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm |
2
vexfisher OP "If the random number generator can return a random integer p ≤ j < q for specified parameters p, q"
@hahastudio 谢过haha君 |
3
eriale 2014 年 8 月 25 日 具体研究过,不过洗牌程序的随机性你可以通过代码来测试,就是对一个队列反复洗牌,并统计出现的位置。
已经有人讨论过怎么测试洗牌程序了: http://coolshell.cn/articles/8593.html https://gist.github.com/GTxx/2796868275375f6bd877 |