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 Desktop Path

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

C# How To Find The Average Of 10 Numbers Using A While Loop

Splitting a String By Desired Character in C#

Finding Character Count of String in C#