public class RandomUtil extends Object
| Constructor and Description |
|---|
RandomUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <E> E |
chooseOne(List<? extends E> list) |
byte[] |
getSecRanByte(int len) |
static int |
nextInt() |
static int |
nextInt(int bound) |
static boolean |
randomBoolean() |
static <T extends Enum<?>> |
randomEnum(Class<T> clazz) |
static int |
randomInt(int min,
int max) |
public static boolean randomBoolean()
public static int nextInt()
public static int nextInt(int bound)
public static int randomInt(int min,
int max)
public static <E> E chooseOne(List<? extends E> list)
public byte[] getSecRanByte(int len)
Copyright © 2021 Shoothzj. All rights reserved.