请问验证码的随机字母+数字是怎么弄的?哪位知道请给个提示,谢谢.
下面是随机数字:
Bitmap img = new Bitmap(40,20);
Graphics g = Graphics.FromImage(img);
g.Clear(Color.Red);
Random rd = new Random();
string check = rd.Next(1000,9999).ToString();
Session.Add("ck",check);
g.DrawString(check,new Font("宋体",12,FontStyle.Bold),Brushes.Red,2,2);
img.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Gif);
Response.ContentType = "image/gif";
g.Dispose();
但是我想弄个随机字母加随机数字的而且是交叉显示的,该怎么弄?