C# 随机生成验证码

public static string GetCode()
{
string strList ="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
Random rd = new Random();
string strResult = "";
for (int i = 0; i < 6; i++)
{ strResult
+= strList[rd.Next(0, strList.Length)]; } return strResult; }

 

C# 随机生成验证码

上一篇:通过分析uml图和jdk源代码对LinkedList和ArrayList的区别进行验证分析


下一篇:如何从Delphi7使用VFrames(TVideoImage)从网络摄像头获取快照(How to get a snapshot from a webcam with Delphi7 using VFrames(TVideoImage))