public string Generate_Password()
{
string Password = "";
byte Cnt, Idx;
string values = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
Random rnd = new Random();
for (Cnt = 1; Cnt <= 6; Cnt++)
{
Idx = (byte)rnd.Next(0, values.Length);
Password += values.Substring(Idx, 1);
}
return Password.Trim().ToUpper();
}
Thursday, February 28, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment