>
import javautilRandom;
public class VerificationCodeHuihe
{
//验证码中可以出现的字符集,可以根据需要修改
private static char mapTable[]={
'a','b','c','d','e','f',
'g','h','i','j','k','l',
'm','n','o','p','q','r',
's','t','u','v','w','x',
'y','z','0','1','2','3',
'4','5','6','7','8','9'
};
static Random sc = new Random ();
public static void main ( String[] args )
{
Systemoutprintln ("混合验证码:");
for ( int i = 0; i < 4; i++ )
{
Systemoutprint (mapTable[scnextInt (mapTablelength)]);
}
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)