码迷,mamicode.com
首页 > 其他好文 > 详细

验证码

时间:2015-04-03 09:06:18      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:

string a = "a s d f g h j k l"; string b = "A S D F G H J K L"; while (true) { Random r = new Random(); string s = a.Substring(r.Next (0,a.Length ),1); s = s + b.Substring(r.Next (0,b.Length ),1); s = s + a.Substring(r.Next(0, a.Length), 1); s = s + b.Substring(r.Next(0, b.Length), 1); s = s + a.Substring(r.Next(0, a.Length), 1); s = s + b.Substring(r.Next(0, b.Length), 1); Console.WriteLine(s); Console.ReadLine(); }

验证码

标签:

原文地址:http://www.cnblogs.com/Mr-xue/p/4389069.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!