Get random enum from a select group
Posted
by Coward
on Stack Overflow
See other posts from Stack Overflow
or by Coward
Published on 2010-06-10T13:13:47Z
Indexed on
2010/06/10
13:23 UTC
Read the original article
Hit count: 174
Given a group of about 20 enums that I cannot modify.
Im looking for an elegant solution to generate a random enum from a specific sample (ie, 2, 7, 18)
I could put these into an arraylist, but thought I would ask if there is something else I could try.
© Stack Overflow or respective owner