生成简单的16位随机字符串

生成简单的16位随机字符串


        //生成16位的随机数
        String time = String.valueOf(System.currentTimeMillis());
        System.out.println("time = " + time);//1589944697520
        String random = String.valueOf(RandomUtils.nextInt(100, 999));
        System.out.println("random = " + random);//467
        String append = random + time;
        System.out.println("append = " + append);//1589944697520467

你可能感兴趣的:(java)