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# Finding the Path to the Windows System32 Folder

C# Finding the Computer Name

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

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

How to Find the Name of the Operating System in C# ?