I have a list of static variables in a static class.
namespace Test
{
public static class Numbers
{
public static readonly int One = 1;
public static readonly int Five = 5;
public static readonly int Ten = 10;
public static readonly int Eleven = 11;
public static readonly int Fifteen= 15;
}
}
And I want to randomly select a variable in the class. How can I achieve this?
int randomVariable = SomeFunction(Numbers);