问题:
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
来源:oschina
链接:https://my.oschina.net/u/4428122/blog/4324992