标签:
using System.Web.Security
var rawPassword = System.Web.Security.Membership.GeneratePassword(10,1)
return Regex.Replace(rawPassword, @"[^a-zA-Z0-9]", m => "9");
C# 产生随机密码
原文地址:http://www.cnblogs.com/wphl-27/p/5763590.html