public final class RandomUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STRING_DEFAULT_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRandomStr() |
static String |
getRandomStr(int len) |
static String |
getRandomStr(int len,
char[] arr)
Generate random string from specified characters.
|
public static final int STRING_DEFAULT_LENGTH
public static String getRandomStr()
public static String getRandomStr(int len)
len - The length of the random string to generate.public static String getRandomStr(int len, char[] arr)
len - of the random stringarr - Randomize characters from this arrayCopyright © 2014. All rights reserved.