mardi 22 octobre 2019

How can I get it to pick a random number from array but a different number each time?

I want to do a random pick from an array but not have the same number come up twice.

array = ['1','2','3','4',]
random.choice(array)

Right now it just picks a number, is there another way so that it will randomize but only do each number once?




Aucun commentaire:

Enregistrer un commentaire