题目内容
Canopy Users: If you have code that calls a random function and then calls random.seed(0) or some other integer other than 0, subsequent times you run your program with the green run arrow button, the random function before you called random.seed(0) will now be seeded as well. To completely reset between runs, you will have to restart the kernel via the menu option (Run -> Restart Kernel) or via the keyboard (Ctrl with the period key).Additionally, if you are writing a program and would like to generate pseudorandom number later on in the code, you can reset the seed to use the system clock with random.seed() (without any arguments).1. Would placing the drunk's starting location not at the origin change the distances returned?
查看答案
搜索结果不匹配?点我反馈
更多问题