public class RandomUtils
extends java.lang.Object
| 构造器和说明 |
|---|
RandomUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
nextBoolean() |
static void |
nextBooleans(boolean[] container) |
static boolean[] |
nextBooleans(int length) |
static void |
nextBytes(byte[] bytes) |
static byte[] |
nextBytes(int length) |
static double |
nextDouble() |
static void |
nextDoubles(double[] container) |
static double[] |
nextDoubles(int length) |
static float |
nextFloat() |
static void |
nextFloats(float[] container) |
static float[] |
nextFloats(int length) |
static double |
nextGaussian() |
static int |
nextInt() |
static int |
nextInt(int bound) |
static int[] |
nextInts(int length) |
static void |
nextInts(int[] container) |
static java.lang.String |
nextLetterLowerString(int count)
生成随机小写字母字符串
|
static java.lang.String |
nextLetterString(int count)
生成随机字母字符串
|
static java.lang.String |
nextLetterUpperString(int count)
生成随机大写字母字符串
|
static long |
nextLong() |
static long[] |
nextLongs(int length) |
static void |
nextLongs(long[] container) |
static java.lang.String |
nextNumberString(int count)
生成随机数字字符串
|
static java.lang.String |
nextString(int count)
生成随机字串
|
static java.lang.String |
nextString(int count,
char[] candidates)
用给定的候选字符生成随机字串
|
static java.lang.String |
nextString(int count,
char[] candidates,
int start,
int end)
用给定的候选字符生成随机字串
[start, end)
|
public static byte[] nextBytes(int length)
public static void nextBytes(byte[] bytes)
public static int[] nextInts(int length)
public static void nextInts(int[] container)
public static int nextInt()
public static int nextInt(int bound)
public static long[] nextLongs(int length)
public static void nextLongs(long[] container)
public static long nextLong()
public static float[] nextFloats(int length)
public static void nextFloats(float[] container)
public static float nextFloat()
public static double[] nextDoubles(int length)
public static void nextDoubles(double[] container)
public static double nextDouble()
public static boolean[] nextBooleans(int length)
public static void nextBooleans(boolean[] container)
public static boolean nextBoolean()
public static double nextGaussian()
public static java.lang.String nextString(int count,
@Nonnull
char[] candidates,
int start,
int end)
count - candidates - start - end - public static java.lang.String nextString(int count,
@Nonnull
char[] candidates)
count - candidates - public static java.lang.String nextString(int count)
count - public static java.lang.String nextNumberString(int count)
count - public static java.lang.String nextLetterLowerString(int count)
count - public static java.lang.String nextLetterUpperString(int count)
count - public static java.lang.String nextLetterString(int count)
count -