// C# Program to generate random alphabets
using System;
class GFG
{
static int MAX = 26;
// Returns a String of random alphabets of
// length n.
static String printRandomString(int n)
{
char []alphabet = { 'a', 'b', 'c', 'd', 'e', 'f', 'g',
'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u',
'v', 'w', 'x', 'y', 'z' };
Random random = new Random();
String res = "";
for (int i = 0; i < n; i++)
res = res + alphabet[(int)(random.Next(0, MAX))];
return res;
}
// Driver code
public static void Main()
{
int n = 10;
Console.Write(printRandomString(n));
}
}