jeudi 3 décembre 2015

How can I replace a integer that shows up twice in a random list (Python/Pygame)

I have a list that looks like this:

l = [random.randint(0,9),random.randint(0,9),random.randint(0,9),random.randint(0,9)]

but if it outputs something like this[9,0,5,5] what can I do replace the repeating integer?




Aucun commentaire:

Enregistrer un commentaire