avoid repetition in secrets.choice() python [duplicate]
If I have a list of 4 elements and I use secrets.choice() 4 times, is it possible to make the program avoid getting the same element? If I'm workung with passwords generation, would random.sample() be a nice option?
Aucun commentaire:
Enregistrer un commentaire