mardi 29 novembre 2016

How does one randomly pick an item from a set such that it is not a particular variable

I am trying to generate an integer from the set [1,2,3] such that it is not the variable inputted into the function. I have already imported the module random. So, if I inputted 3, it would randomly pick 1 or 2. Thank you for the help.




Aucun commentaire:

Enregistrer un commentaire