Random is barely random at all?

前端 未结 11 597
失恋的感觉
失恋的感觉 2020-11-27 10:27

I did this to test the randomness of randint:

>>> from random import randint
>>>
>>> uniques = []
>>> for i in range(4500         


        
11条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 10:48

    For anyone else with this problem, I used uuid.uuid4() and it works like a charm.

提交回复
热议问题