摘要:
1、生成字母和数字结合的随机序列:Random rn = newRandom();stringcharsToUse = "AzByCxDwEvFuGtHsIrJqKpLoMnNmOlPkQjRiShTgUfVeWdXcYbZa1234567890";MatchEvaluator RandomChar = delegate(Match m){returncharsToUse[rn.Next( charsToUse.Length )].ToString();};Console.WriteLine( Regex.Replace( "XXXX-XXXX-XXXX-XXXX 阅读全文