public abstract class RandomUtils extends Object
| 构造器和说明 |
|---|
RandomUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
main(String[] args) |
private static double |
nextDouble() |
static boolean |
randomBoolean() |
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 double |
randomDouble(long from,
long to) |
static double[] |
randomDoubles(int length,
long from,
long to) |
static float |
randomFloat(long from,
long to) |
static float |
randomFloat(long from,
long to,
int scale) |
static float[] |
randomFloats(int length,
long from,
long to) |
static int |
randomInt(int from,
int to) |
static int[] |
randomInts(int length,
int from,
int to) |
static long |
randomLong(long from,
long to) |
static long[] |
randomLongs(int length,
long from,
long to) |
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 long randomLong(long from,
long to)
public static long[] randomLongs(int length,
long from,
long to)
private static double nextDouble()
public static float randomFloat(long from,
long to)
public static float randomFloat(long from,
long to,
int scale)
public static float[] randomFloats(int length,
long from,
long to)
public static int randomInt(int from,
int to)
public static int[] randomInts(int length,
int from,
int to)
public static double randomDouble(long from,
long to)
public static double[] randomDoubles(int length,
long from,
long to)
public static boolean randomBoolean()
Copyright © 2020. All rights reserved.