Just a demo example as below :
private string GenerateRandomCode()
{
string s = "";
Random objrand = new Random();
char[] arr = "abcdefghijklmnopqrstuvwxyz".ToCharArray();
for (int i = 0; i < 3; i++)
{
s = s + arr[objrand.Next(26)].ToString() + objrand.Next(10).ToString();
}
return s;
}
You can modify it as you want