string str ="abcdefghigklmnopqrstuvwxyzABCDEFJHIGKLMNOPQRSTUVWXYZ1234567890";
while(true){
string yzm = "";
Random rm = new Random();
for (int i = ; i < ; i++)
{
int index = rm.Next(, str.Length);
string x = str.Substring(index, );
yzm += x;
}
Console.Write(yzm);
string a = Console.ReadLine();
if(a == yzm)
       {
break;
       }
}

Console.Read();
05-11 22:36