摘要: //生成数字加字母的字符串的方法 public static string ToRandPwd() { Random random = new Random(); int pwdLength = random.Next(6, 10);//密码长度控制在6到10位之间 string password = ""; string temp1 = string.Empty; int digitNum1 = random.Next(pwdLength - 1); if (digitNum1 == 0) { digitNum1 = 1; } int charUpperNum1 = ra 阅读全文
posted @ 2012-06-06 16:10 blncle 阅读(498) 评论(0) 推荐(0) 编辑