I was planning to create a list of names, and have a program pick one out randomly and print it. Did not sound hard. Just grab some enums and....
well, .........
Apparently there is no direct way to get the name of an enum. Is there a practical way to solve the above task? I came up with different very impractical ways, like having my randomly picked number compared in a switch case, which is not cool if you have more than 300+ names to pick from.