java通过UUID获得随机字符串

UUID uuid=UUID.randomUUID();
String random = uuid.toString().replace("-", "");
System.out.println(random);