Why is it hard for a program to generate random numbers?

后端 未结 26 3573
自闭症患者
自闭症患者 2020-12-15 05:38

My kids asked me this question and I couldn\'t really give a concise, understandable explanation.

So I\'m hoping someone on SO can.

26条回答
  •  不知归路
    2020-12-15 06:22

    Generating random numbers on a computer is like playing "Eenie meenie miney moe" when choosing who's It first in a game of tag. On the surface it does look random, but when you get into the details, it's completely deterministic. It's hard to make eenie meenie miney moe into a scheme that a person really can't predict the outcome of.

    Also there's some difficulties with getting the distribution nice and even.

提交回复
热议问题