<%
java.util.Random random = new java.util.Random();
int securitycode = 0;
while ((securitycode = random.nextInt(9999)) < 1000) {
securitycode = random.nextInt(9999);
}
String code1 = new Integer(securitycode).toString().substring(0, 1);
String code2 = new Integer(securitycode).toString().substring(1, 2);
String code3 = new Integer(securitycode).toString().substring(2, 3);
String code4 = new Integer(securitycode).toString().substring(3);
%>
<%=code1 + code2 + code3 + code4%> |