标签:i++ zab ++ 组合 dom and buffer min stringbu
private static String RandomAdminId() {
String str = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
String strIndex = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
StringBuffer strB = new StringBuffer("");
int index = (int) (51 * Math.random());
strB.append(strIndex.charAt(index));
for (int i = 0; i <= 4; i++) {
int j = (int) (61 * Math.random());
strB.append(str.charAt(j));
}
return strB.toString();
}
标签:i++ zab ++ 组合 dom and buffer min stringbu
原文地址:http://www.cnblogs.com/austinspark-jessylu/p/5995403.html