public string generaterandomno()
{
string aa = "1234567890qwertyuiopasdfghjklzxcvbnm";
string R_code = "";
Random rnd = new Random();
for (int i = 0; i < 8; i++)
{
int a = rnd.Next() % (aa.ToString().Length - 1);
R_code += aa[a];
}
return R_code;
}
{
string aa = "1234567890qwertyuiopasdfghjklzxcvbnm";
string R_code = "";
Random rnd = new Random();
for (int i = 0; i < 8; i++)
{
int a = rnd.Next() % (aa.ToString().Length - 1);
R_code += aa[a];
}
return R_code;
}
0 comments:
Post a Comment