public abstract class RandomUtils extends Object
| 构造器和说明 |
|---|
RandomUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BigDecimal |
defineBigDecimal(int precision,
int scale) |
static BigDecimal[] |
defineBigDecimals(int length,
int precision,
int scale) |
static BigDecimal[] |
defineBigDecimals(int length,
int precision,
int scale,
boolean existsAllowed) |
static BigInteger |
defineBigInteger(int precision) |
static BigInteger[] |
defineBigIntegers(int length,
int precision) |
static BigInteger[] |
defineBigIntegers(int length,
int precision,
boolean existsAllowed) |
static double |
defineDouble(int precision,
int scale) |
static double[] |
defineDoubles(int length,
int precision,
int scale) |
static double[] |
defineDoubles(int length,
int precision,
int scale,
boolean existsAllowed) |
static float |
defineFloat(int precision,
int scale) |
static float[] |
defineFloats(int length,
int precision,
int scale) |
static float[] |
defineFloats(int length,
int precision,
int scale,
boolean existsAllowed) |
static int |
defineInt(int precision) |
static int[] |
defineInts(int length,
int precision) |
static int[] |
defineInts(int length,
int precision,
boolean existsAllowed) |
static long |
defineLong(int precision) |
static long[] |
defineLongs(int length,
int precision) |
static long[] |
defineLongs(int length,
int precision,
boolean existsAllowed) |
static BigDecimal |
randomBigDecimal(BigDecimal from,
BigDecimal to) |
static BigDecimal |
randomBigDecimal(BigDecimal from,
BigDecimal to,
int scale) |
static BigDecimal |
randomBigDecimal(double from,
double to,
int scale) |
static BigDecimal |
randomBigDecimal(int scale) |
static BigInteger |
randomBigInteger(BigInteger from,
BigInteger to) |
static BigInteger |
randomBigInteger(long from,
long to) |
static boolean |
randomBoolean() |
static byte |
randomByte(byte from,
byte to) |
static char |
randomChar(char from,
char to) |
static boolean |
randomChoice(boolean[] choice) |
static boolean |
randomChoice(boolean[] choice,
int length) |
static byte |
randomChoice(byte[] choice) |
static byte |
randomChoice(byte[] choice,
int length) |
static char |
randomChoice(char[] choice) |
static char |
randomChoice(char[] choice,
int length) |
static double |
randomChoice(double[] choice) |
static double |
randomChoice(double[] choice,
int length) |
static float |
randomChoice(float[] choice) |
static float |
randomChoice(float[] choice,
int length) |
static int |
randomChoice(int[] choice) |
static int |
randomChoice(int[] choice,
int length) |
static <T> T |
randomChoice(List<T> list) |
static <T> T |
randomChoice(List<T> list,
int length) |
static long |
randomChoice(long[] choice) |
static long |
randomChoice(long[] choice,
int length) |
static short |
randomChoice(short[] choice) |
static short |
randomChoice(short[] choice,
int length) |
static <T> T |
randomChoice(T[] choice) |
static <T> T |
randomChoice(T[] choice,
int length) |
static int |
randomDayOfMonth(int year,
int month,
int fromDayOfMonth,
int toDayOfMonth) |
static int |
randomDayOfMonth(java.time.YearMonth yearMonth,
int fromDayOfMonth,
int toDayOfMonth) |
static int |
randomDayOfYear(java.time.Year year,
int fromDayOfYear,
int toDayOfYear) |
static double |
randomDouble() |
static double |
randomDouble(double from,
double to) |
static double |
randomDouble(double from,
double to,
int scale) |
static double[] |
randomDoubles(int length,
double from,
double to) |
static double[] |
randomDoubles(int length,
double from,
double to,
boolean existsAllowed) |
static <E extends Enum<E>> |
randomEnum(Class<E> enumClass) |
static float |
randomFloat() |
static float |
randomFloat(float from,
float to) |
static float |
randomFloat(float from,
float to,
int scale) |
static float[] |
randomFloats(int length,
float from,
float to) |
static float[] |
randomFloats(int length,
float from,
float to,
boolean existsAllowed) |
static int |
randomHourOfDay(int fromHourOfDay,
int toHourOfDay) |
static int |
randomInt() |
static int |
randomInt(int from,
int to) |
static int[] |
randomInts(int length,
int from,
int to) |
static int[] |
randomInts(int length,
int from,
int to,
boolean existsAllowed) |
static long |
randomLong(long from,
long to) |
static long[] |
randomLongs(int length,
long from,
long to) |
static long[] |
randomLongs(int length,
long from,
long to,
boolean existsAllowed) |
static int |
randomMinuteOrSecond(int from,
int to) |
static int |
randomMonth(int fromMonth,
int toMonth) |
static java.time.Month |
randomMonth(java.time.Month start,
java.time.Month end) |
static short |
randomShort(short from,
short to) |
static short[] |
randomShorts(int length,
short from,
short to) |
static short[] |
randomShorts(int length,
short from,
short to,
boolean existsAllowed) |
static int |
randomYear(int fromYear,
int toYear) |
public static byte randomChoice(byte[] choice)
public static byte randomChoice(byte[] choice,
int length)
public static short randomChoice(short[] choice)
public static short randomChoice(short[] choice,
int length)
public static int randomChoice(int[] choice)
public static int randomChoice(int[] choice,
int length)
public static long randomChoice(long[] choice)
public static long randomChoice(long[] choice,
int length)
public static float randomChoice(float[] choice)
public static float randomChoice(float[] choice,
int length)
public static double randomChoice(double[] choice)
public static double randomChoice(double[] choice,
int length)
public static char randomChoice(char[] choice)
public static char randomChoice(char[] choice,
int length)
public static boolean randomChoice(boolean[] choice)
public static boolean randomChoice(boolean[] choice,
int length)
public static <T> T randomChoice(T[] choice)
public static <T> T randomChoice(T[] choice,
int length)
public static <T> T randomChoice(List<T> list)
public static <T> T randomChoice(List<T> list, int length)
public static boolean randomBoolean()
public static byte randomByte(byte from,
byte to)
public static char randomChar(char from,
char to)
public static short randomShort(short from,
short to)
public static short[] randomShorts(int length,
short from,
short to)
public static short[] randomShorts(int length,
short from,
short to,
boolean existsAllowed)
public static int randomInt()
public static int defineInt(int precision)
public static int[] defineInts(int length,
int precision)
public static int[] defineInts(int length,
int precision,
boolean existsAllowed)
public static int randomInt(int from,
int to)
public static int[] randomInts(int length,
int from,
int to)
public static int[] randomInts(int length,
int from,
int to,
boolean existsAllowed)
public static long defineLong(int precision)
public static long[] defineLongs(int length,
int precision)
public static long[] defineLongs(int length,
int precision,
boolean existsAllowed)
public static long randomLong(long from,
long to)
public static long[] randomLongs(int length,
long from,
long to)
public static long[] randomLongs(int length,
long from,
long to,
boolean existsAllowed)
public static float randomFloat()
public static float randomFloat(float from,
float to)
public static float randomFloat(float from,
float to,
int scale)
public static float defineFloat(int precision,
int scale)
public static float[] defineFloats(int length,
int precision,
int scale)
public static float[] defineFloats(int length,
int precision,
int scale,
boolean existsAllowed)
public static float[] randomFloats(int length,
float from,
float to)
public static float[] randomFloats(int length,
float from,
float to,
boolean existsAllowed)
public static double randomDouble()
public static double randomDouble(double from,
double to)
public static double randomDouble(double from,
double to,
int scale)
public static double defineDouble(int precision,
int scale)
public static double[] defineDoubles(int length,
int precision,
int scale)
public static double[] defineDoubles(int length,
int precision,
int scale,
boolean existsAllowed)
public static double[] randomDoubles(int length,
double from,
double to)
public static double[] randomDoubles(int length,
double from,
double to,
boolean existsAllowed)
public static BigInteger randomBigInteger(long from, long to)
public static BigInteger randomBigInteger(BigInteger from, BigInteger to)
public static BigDecimal randomBigDecimal(double from, double to, int scale)
public static BigDecimal randomBigDecimal(BigDecimal from, BigDecimal to)
public static BigDecimal randomBigDecimal(BigDecimal from, BigDecimal to, int scale)
public static BigDecimal randomBigDecimal(int scale)
public static BigDecimal defineBigDecimal(int precision, int scale)
public static BigDecimal[] defineBigDecimals(int length, int precision, int scale)
public static BigDecimal[] defineBigDecimals(int length, int precision, int scale, boolean existsAllowed)
public static BigInteger defineBigInteger(int precision)
public static BigInteger[] defineBigIntegers(int length, int precision)
public static BigInteger[] defineBigIntegers(int length, int precision, boolean existsAllowed)
public static int randomYear(int fromYear,
int toYear)
public static int randomMonth(int fromMonth,
int toMonth)
public static java.time.Month randomMonth(java.time.Month start,
java.time.Month end)
public static int randomDayOfYear(java.time.Year year,
int fromDayOfYear,
int toDayOfYear)
public static int randomDayOfMonth(java.time.YearMonth yearMonth,
int fromDayOfMonth,
int toDayOfMonth)
public static int randomDayOfMonth(int year,
int month,
int fromDayOfMonth,
int toDayOfMonth)
public static int randomHourOfDay(int fromHourOfDay,
int toHourOfDay)
public static int randomMinuteOrSecond(int from,
int to)
Copyright © 2022. All rights reserved.