/**
* 生成验证码
*
* @param len
* 输入验证码长度
* @return
*/
public static String getRandCheckCode(int len) {
String str = "1234567890qwertyuiopasdfghjklzxcvbnm";Random rand = new Random();
StringBuffer sb = new StringBuffer();
for (int i = 0; i < len; i++) {
sb.append(str.charAt(rand.nextInt(str.length())));
}
return sb.toString();
}