生成随机数

private String generateCode() {
        int min = 100000;
        int max = 1000000;
Random rand = new Random();
int res = this.rand.nextInt(max - min) + min; return String.valueOf(res); }
posted @ 2020-01-18 01:20  Peter.Jones  阅读(64)  评论(0编辑  收藏  举报