生成不重复的32为随机码

public static void main(String[] args) throws ParseException {
//random(2);
UUID.randomUUID().toString().replaceAll("-", "~~");
System.out.println( UUID.randomUUID().toString().replaceAll("-", ""));
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

f4751817162e4c18bae18a7a2a201e8c

原文地址:https://www.cnblogs.com/yy123/p/4012620.html