阅读背景:

我怎么知道python中生成的随机数?

来源:互联网 

Here is my code. I am just starting to learn Python. I am trying to generate a random number and guess it. If the answer is 7, then my program will print "lucky". If not, then "unlucky". I try to run my simple code many times. Every time I get "unlucky". Is there anybody who knows whether the problem is in my algorithm or somewhere else. BTW, I really want to know how could I know specifically know what is the number randomly generated in python? I just wonder if the same number, that is being generated every time, is the same one or not.Here is my code. I am just starting to learn Py




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: