S
Sahibjot Cheema
Guest
Not sure if this is possible or not but I have an enum and i want a variable to change to a random string from that list. For example if i have this enum.
and i want a variable to change to "test1", not the number 1 but the string. I know theirs a workaround with arrays but I want to know if this is possible?
Code:
enum item {
none = 0,
test1 = 1,
test2 = 2,
test3 = 3,
height = 11,
}