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# Substring Method

C# Finding the Operating System Username

C# Finding the Path to the Windows System32 Folder

C# Finding the Path to My Documents Folder

C# Finding the Computer Name