C# Generating Random Letters

The sample code for generating random letters in C# is given below...

namespace ConsoleApplicationTest
{
    class Program {

        static void Main(string[] args) {

            Random random = new Random();
            
            int letNum = random.Next(0, 26);
            char chr = (char)('a' + letNum);

            Console.WriteLine(chr);

            Console.ReadLine();

        }
    }
}



You May Interest

C# Taking Action by MessageBox OK Button

Finding the Index Order of a Character in a String in C#

C# Getting Current Time

C# Example of Sum of Even Numbers from 1 to 100

C# Non-Restart Check If Application is Open