6位随机数
程序员文章站
2022-05-30 21:45:53
...
import org.apache.commons.lang.RandomStringUtils;
public class DummyFileHelper {
//private final static String RAMDOM_SOURCE = "0123456789";
private final static String RAMDOM_SOURCE = "0123456789025689";
public static void main(String[] args) throws IOException {
String randomNumber=RandomStringUtils.random(6, RAMDOM_SOURCE);
System.out.println(randomNumber);
}
}
public class DummyFileHelper {
//private final static String RAMDOM_SOURCE = "0123456789";
private final static String RAMDOM_SOURCE = "0123456789025689";
public static void main(String[] args) throws IOException {
String randomNumber=RandomStringUtils.random(6, RAMDOM_SOURCE);
System.out.println(randomNumber);
}
}
上一篇: 200分请教strace发现的一个问题
下一篇: phpcms $CATEGORYS 变量