public class RandomUtil
extends Object
Modifier and Type | Field and Description |
---|---|
protected static Random |
random |
Constructor and Description |
---|
RandomUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
nextInt(int n) |
static int[] |
nextInts(int n,
int size) |
static void |
shuffle(Random random,
int[] numbers) |
static String |
shuffle(Random random,
String s) |
static void |
shuffle(Random random,
StringBuilder sb) |
static String |
shuffle(String s) |
public static int nextInt(int n)
public static int[] nextInts(int n, int size)
public static void shuffle(Random random, int[] numbers)
public static String shuffle(Random random, String s)
public static void shuffle(Random random, StringBuilder sb)
public static String shuffle(String s)