理解“随机性”

两盒软妹~` 提交于 2020-08-11 12:46:22

问题:

I can't get my head around this, which is more random? 我无法理解这一点,这更随机?

rand()

OR 要么

rand() * rand()

I´m finding it a real brain teaser, could you help me out? 我发现它是一个真正的脑筋急转弯,你能帮助我吗?

EDIT: 编辑:

Intuitively I know that the mathematical answer will be that they are equally random, but I can't help but think that if you "run the random number algorithm" twice when you multiply the two together you'll create something more random than just doing it once. 直观地,我知道数学答案将是它们同样随机,但我不禁想到,如果你将两者相乘的话“运行随机数算法”两次,你会创造一些比随机更随机的东西它一次。


解决方案:

参考一: https://stackoom.com/question/GbGA/理解-随机性
参考二: https://oldbug.net/q/GbGA/Understanding-randomness
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!