public class Gen extends Object
Constructor and Description |
---|
Gen() |
Modifier and Type | Method and Description |
---|---|
static int[] |
permute(int[] x)
Pull items out of the list in a random order
|
static int[] |
rand(int numRand,
int low,
int high)
Generate a random sequence between low (inclusive) and high (exclusive): may include duplicates.
|
static int[] |
rand(int numRand,
int low,
int high,
boolean allDifferent)
Generate a random sequence between low (inclusive) and high (exclusive) - with duplicates or not
|
static int[] |
shuffle(int[] x,
int num)
Do a number of random pair-wise swaps
|
static String |
strings(int[] keys) |
public static int[] rand(int numRand, int low, int high)
public static int[] rand(int numRand, int low, int high, boolean allDifferent)
public static int[] permute(int[] x)
public static int[] shuffle(int[] x, int num)
public static String strings(int[] keys)
Licenced under the Apache License, Version 2.0