Beispiel #1
0
 public static CheckCode Generate()
 {
     CheckCode cc = new CheckCode();
     string list = "abcdefghijklmnopqrstuvwxyz";
     cc.code = "";
     Random r = new Random();
     for (int i = 0; i < 5; i++)
         cc.code += list[r.Next(26)];
     return cc;
 }