生成无重复5位数的邀请码
摘要:
staticvoid Main(string[] args) { int len ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".Length -1; char[] code ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(0, len +1); int i =new Random(DateTime.Now.Millisecond).Next(0, len); Console.Write(code[i]); i =new Random(DateTime.Now.Mil 阅读全文
posted @ 2012-10-12 14:33 奔腾年代 阅读(581) 评论(0) 推荐(0) 编辑