/// /// 产生随机字母 /// /// public static string RandomnAlpha ( int i ) { string oriStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstyuwxyz"; string reStr = ""; Random rd = new Random(); for ( int k = 0; k < i; k++ ) { reStr += oriStr[rd.Next ( 0, oriStr.Length ) ].ToString(); } return reStr; }
by: 发表于:2018-01-15 09:56:16 顶(0) | 踩(0) 回复
??
回复评论