1.public static String genRandomNumber(int length){
String [] randomVal = new String[]{"0","1","2","3","4","6","7","8","9",} ;
StringBuffer str = new StringBuffer();
for(int i=0;i<length;i++){
Double number = Math.random()*(randomVal.length-1);
str.append(randomVal[number.intValue()]);
}
}