enum: min, max, count, random?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I get the minimum value, maximum value, the number of items in an
enum and a random value from an enum?
I intend to use an enum as a lookup table for randomly selected colours.
Or is enum the wrong choice? better use an array?

thanks herbert
 
Hi,

A good start point to take a look to "Enum" class. Enum class offers
methods to acess enum values and elements.

I think that the use of enum for a lookup table is a good choice, but I have
hundreads of elements conseider using an Array :)
 
Back
Top