-
Recent Posts
Recent Comments
Raja on Courses Mr WordPress on Courses Archives
Categories
Meta
Monthly Archives: June 2012
publicĀ static string GeneratePassword() { int length = 0; Random rdm = new Random(); string characterPool = ” ABCDEFGHIJKLabcdefghijkl12345MNOPQRSTUVWXYZmnopqrstuvwxyz67890″; StringBuilder rs = new StringBuilder(); while (length < 6) { rs.Append(characterPool[(int)(rdm.NextDouble() * characterPool.Length)]); length++; } return rs.ToString(); }