public final class RandomUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
createBoolean(float percentage) |
static java.lang.Character |
createCharacter(char min,
char max) |
static java.awt.Color |
createColor(int maxRed,
int maxGreen,
int maxBlue) |
static java.util.Date |
createDate(int minYear,
int maxYear) |
static java.lang.Double |
createDouble(java.lang.Double min,
java.lang.Double max) |
static java.lang.Float |
createFloat(float min,
float max) |
static java.lang.Integer |
createInteger(java.lang.Integer min,
java.lang.Integer max) |
static java.lang.Long |
createLong(java.lang.Long min,
java.lang.Long max) |
static java.lang.String |
createString(char min,
char max,
int stringLength) |
static java.lang.String[] |
createStrings(char min,
char max,
int stringLength,
int stringCount) |
static <E> E |
selectElement(E[] array) |
static java.lang.String |
shuffleCasing(java.lang.String str) |
static java.lang.String[] |
shuffleStringArray(java.lang.String... array) |
public static boolean createBoolean(float percentage)
public static java.lang.Character createCharacter(char min, char max)
public static java.lang.Double createDouble(java.lang.Double min, java.lang.Double max)
public static java.lang.Float createFloat(float min, float max)
public static java.lang.Integer createInteger(java.lang.Integer min, java.lang.Integer max)
public static java.lang.Long createLong(java.lang.Long min, java.lang.Long max)
public static java.lang.String createString(char min, char max, int stringLength)
public static java.lang.String[] createStrings(char min, char max, int stringLength, int stringCount)
public static java.util.Date createDate(int minYear, int maxYear)
public static <E> E selectElement(E[] array)
public static java.lang.String shuffleCasing(java.lang.String str)
public static java.lang.String[] shuffleStringArray(java.lang.String... array)
public static java.awt.Color createColor(int maxRed, int maxGreen, int maxBlue)