|
|
|
@@ -13,7 +13,7 @@ public class RandomUtils { |
|
|
|
}; |
|
|
|
|
|
|
|
public static String getStr(int lenght) { |
|
|
|
StringBuffer str = new StringBuffer(); |
|
|
|
StringBuilder str = new StringBuilder(); |
|
|
|
for(int i = 0;i < lenght; i++) { |
|
|
|
Double number=Math.random()*(randomValues.length-1); |
|
|
|
str.append(randomValues[number.intValue()]); |
|
|
|
@@ -22,7 +22,7 @@ public class RandomUtils { |
|
|
|
} |
|
|
|
|
|
|
|
public static String getNum(int lenght) { |
|
|
|
StringBuffer str = new StringBuffer(); |
|
|
|
StringBuilder str = new StringBuilder(); |
|
|
|
for(int i = 0;i < lenght; i++) { |
|
|
|
Double number=Math.random()*(randomNums.length-1); |
|
|
|
str.append(randomNums[number.intValue()]); |
|
|
|
|