random.choice() returns same value at the same second, how does one avoid it?

后端 未结 3 1789
借酒劲吻你
借酒劲吻你 2021-01-11 10:11

I have been looking at similar questions regarding how to generate random numbers in python. Example: Similar Question - but i do not have the problem that the randomfunctio

3条回答
  •  Happy的楠姐
    2021-01-11 10:38

    Another option would be to update the seed with the previous result to get a pseudorandom sequence. An option would be old_seed XOR result or just the result.

提交回复
热议问题