dimanche 15 novembre 2020

Is there a simple way to randomly pick from a list with the exception of one element?

If I wanted to pick randomly from a list like this, and I got b...

list=[a,b,c,d]

Is there a simple way to pick another element from the list, without picking b again, without altering the list in anyway?




Aucun commentaire:

Enregistrer un commentaire