birthday-paradox

Random is barely random at all?

Random is barely random at all? Question: I did this to test the randomness of randint: >>> from random import randint >>> >>> uniques = [] >>> for i in range(4500): # You can see I was optimistic. … x = randint(500, 5000) … if x in uniques: … raise Exception(‘We duped %d at iteration …

Total answers: 11