mercredi 30 octobre 2019

Python random unique value for multiple variables

The issue I'm having is that I need to set letters a-z a random unique value from 1 to 26. The same number equalling multiple letters is what I want to avoid. Current methods I have is over 70 lines and is just while loops of each letter to not equal the value given previously for a different letter. Any ideas?




Aucun commentaire:

Enregistrer un commentaire