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

后端 未结 26 3510
自闭症患者
自闭症患者 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:21

    Because given any input, an algorithm produces the exact same output every single time. And you can't just provide a "random" input, because you're trying to generate the random number in the first place.

提交回复
热议问题