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

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

    Ask them to devise a step-by-step method to generate a random number.

    And don't accept "pick a number from 1 to 10" as an answer ;)

    Trying out a problem should illustrate the difficulty of having to generate random numbers from a set of instructions, just like what computers actually have to do.

提交回复
热议问题