Random is barely random at all?

前端 未结 11 562
失恋的感觉
失恋的感觉 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:47

    If you don't want repetative one, generate sequential array and use random.shuffle

提交回复
热议问题