[Tutor] Help
Alan Gauld
alan.gauld at yahoo.co.uk
Wed Mar 20 18:50:24 EDT 2019
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.
More information about the Tutor
mailing list