using System;
public class Program
{
public static void Main()
// Create the RNG.
// NOTE: You should create this only once - don't create one every time you want a random number!
Random rng = new Random();
// Get an array of all the names in the enum.
string[] values = Enum.GetNames<Last>();
// Choose a random element from the array of enum names.
string randomName = values[rng.Next(values.Length)];
Console.WriteLine(randomName);
}
public enum Last
Jones,
Smith,
Brown,