How to get random value of attribute of Enum on each iteration? – stackoverflow.com

I have created such Enum object: class Gender(Enum): FEMALE = 'female' MALE = 'male' RANDOM = random.choice([FEMALE, MALE]) and i want to get really random value each time, but it does ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "How to get random value of attribute of Enum on each iteration? – stackoverflow.com"