On 20/03/19 14:30, Eric Oh Yeah Yeah wrote:
How do I make Python 3 pick a random variable out of a set of variables I
give it?
There are several options but if you look in the random module you
should find one that suits your particular needs.
choice() or randrange() may be good options.
If that's not enough of a hint come back with more specific details
about what kind of "set of variables" you are using.
Alan G.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor