标签:append builder oms for ++ div har app return
public static String getRandomString(Integer length) {
String str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
Random random = new Random();
StringBuilder builder = new StringBuilder();
for (Integer i = 0; i < length; ++i) {
builder.append(str.charAt(random.nextInt(62)));
}
return builder.toString();
}
标签:append builder oms for ++ div har app return
原文地址:https://www.cnblogs.com/StarUDream/p/9045547.html