public class RandomData extends Object
Constructor and Description |
---|
RandomData() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getRandomByteArray(int length,
byte min,
byte max)
Returns a one dimensional array of pseudorandom, uniformly
distributed byte values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static byte[] |
getRandomByteArray(int length,
byte min,
byte max,
int seed)
Returns a one dimensional array of pseudorandom, uniformly
distributed byte values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static byte[] |
getRandomByteArray(int length,
byte min,
byte max,
cern.jet.random.engine.MersenneTwister mt)
Returns a one dimensional array of pseudorandom, uniformly
distributed byte values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static byte[][] |
getRandomByteArray(int rows,
int cols,
byte min,
byte max)
Returns a two dimensional array of pseudorandom, uniformly
distributed byte values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static byte[][] |
getRandomByteArray(int rows,
int cols,
byte min,
byte max,
int seed)
Returns a two dimensional array of pseudorandom, uniformly
distributed byte values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static double[] |
getRandomDoubleArray(int length,
double min,
double max)
Returns a one dimensional array of pseudorandom, uniformly
distributed double values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static double[] |
getRandomDoubleArray(int length,
double min,
double max,
int seed)
Returns a one dimensional array of pseudorandom, uniformly
distributed double values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static double[] |
getRandomDoubleArray(int length,
double min,
double max,
cern.jet.random.engine.MersenneTwister mt)
Returns a one dimensional array of pseudorandom, uniformly
distributed double values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static double[][] |
getRandomDoubleArray(int rows,
int cols,
double min,
double max)
Returns a two dimensional array of pseudorandom, uniformly
distributed double values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static double[][] |
getRandomDoubleArray(int rows,
int cols,
double min,
double max,
int seed)
Returns a two dimensional array of pseudorandom, uniformly
distributed double values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static float[] |
getRandomFloatArray(int length,
float min,
float max)
Returns a one dimensional array of pseudorandom, uniformly
distributed float values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static float[] |
getRandomFloatArray(int length,
float min,
float max,
int seed)
Returns a one dimensional array of pseudorandom, uniformly
distributed float values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static float[] |
getRandomFloatArray(int length,
float min,
float max,
cern.jet.random.engine.MersenneTwister mt)
Returns a one dimensional array of pseudorandom, uniformly
distributed float values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static float[][] |
getRandomFloatArray(int rows,
int cols,
float min,
float max)
Returns a two dimensional array of pseudorandom, uniformly
distributed float values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static float[][] |
getRandomFloatArray(int rows,
int cols,
float min,
float max,
int seed)
Returns a two dimensional array of pseudorandom, uniformly
distributed float values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static int[] |
getRandomIntArray(int length,
int min,
int max)
Returns a one dimensional array of pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static int[] |
getRandomIntArray(int length,
int min,
int max,
int seed)
Returns a one dimensional array of pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static int[][] |
getRandomIntArray(int rows,
int cols,
int min,
int max,
int seed)
Returns a two dimensional array of pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static int[] |
getRandomIntArray(int length,
int min,
int max,
cern.jet.random.engine.MersenneTwister mt)
Returns a one dimensional array of pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static long[][] |
getRandomLongArray(int rows,
int cols,
long min,
long max)
Returns a two dimensional array of pseudorandom, uniformly
distributed long values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static long[][] |
getRandomLongArray(int rows,
int cols,
long min,
long max,
int seed)
Returns a two dimensional array of pseudorandom, uniformly
distributed long values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static long[] |
getRandomLongArray(int length,
long min,
long max)
Returns a one dimensional array of pseudorandom, uniformly
distributed long values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static long[] |
getRandomLongArray(int length,
long min,
long max,
int seed)
Returns a one dimensional array of pseudorandom, uniformly
distributed long values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static long[] |
getRandomLongArray(int length,
long min,
long max,
cern.jet.random.engine.MersenneTwister mt)
Returns a one dimensional array of pseudorandom, uniformly
distributed long values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static short[][] |
getRandomShortArray(int rows,
int cols,
short min,
short max,
int seed)
Returns a two dimensional array of pseudorandom, uniformly
distributed short values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static short[] |
getRandomShortArray(int length,
short min,
short max,
int seed)
Returns a one dimensional array of pseudorandom, uniformly
distributed short values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static short[] |
getRandomShortArray(int length,
short min,
short max,
cern.jet.random.engine.MersenneTwister mt)
Returns a one dimensional array of pseudorandom, uniformly
distributed short values between min (inclusive) and
max (exclusive), drawn from this random number generator's sequence.
|
static int[] |
getUniqueRandomInts(int N,
int min,
int max)
Returns an array of N unique pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive).
|
static int[] |
getUniqueRandomInts(int N,
int min,
int max,
Random rng)
Returns an array of N unique pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive).
|
static int[] |
getUniqueRandomIntsA(int N,
int min,
int max)
Returns an array of N unique pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive).
|
static int[] |
getUniqueRandomIntsA(int N,
int min,
int max,
Random rnd)
Returns an array of N unique pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive).
|
static int[] |
getUniqueRandomIntsS(int N,
int min,
int max)
Returns an array of N unique pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive).
|
static int[] |
getUniqueRandomIntsS(int N,
int min,
int max,
Random rnd)
Returns an array of N unique pseudorandom, uniformly
distributed int values between min (inclusive) and
max (exclusive).
|
public RandomData()
public static float[][] getRandomFloatArray(int rows, int cols, float min, float max)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueUniform
public static float[][] getRandomFloatArray(int rows, int cols, float min, float max, int seed)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static double[][] getRandomDoubleArray(int rows, int cols, double min, double max)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueUniform
public static double[][] getRandomDoubleArray(int rows, int cols, double min, double max, int seed)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static int[][] getRandomIntArray(int rows, int cols, int min, int max, int seed)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static long[][] getRandomLongArray(int rows, int cols, long min, long max)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueUniform
public static long[][] getRandomLongArray(int rows, int cols, long min, long max, int seed)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static short[][] getRandomShortArray(int rows, int cols, short min, short max, int seed)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static byte[][] getRandomByteArray(int rows, int cols, byte min, byte max)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueUniform
public static byte[][] getRandomByteArray(int rows, int cols, byte min, byte max, int seed)
rows
- number of rowscols
- number of colsmin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static int[] getUniqueRandomIntsA(int N, int min, int max)
N
- number of unique random numbersmin
- minimum valuemax
- maximum valuepublic static int[] getUniqueRandomIntsS(int N, int min, int max)
N
- number of unique random numbersmin
- minimum valuemax
- maximum valuepublic static int[] getUniqueRandomInts(int N, int min, int max)
N
- number of unique random numbersmin
- minimum valuemax
- maximum valuepublic static int[] getUniqueRandomIntsA(int N, int min, int max, Random rnd)
N
- number of unique random numbersmin
- minimum valuemax
- maximum valuernd
- random generator to usepublic static int[] getUniqueRandomIntsS(int N, int min, int max, Random rnd)
N
- number of unique random numbersmin
- minimum valuemax
- maximum valuernd
- random generator to usepublic static int[] getUniqueRandomInts(int N, int min, int max, Random rng)
N
- number of unique random numbersmin
- minimum valuemax
- maximum valuerng
- random generator to usepublic static float[] getRandomFloatArray(int length, float min, float max)
length
- length of arraymin
- minimum valuemax
- maximum valueUniform
public static float[] getRandomFloatArray(int length, float min, float max, int seed)
length
- length of arraymin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static double[] getRandomDoubleArray(int length, double min, double max)
length
- length of arraymin
- minimum valuemax
- maximum valueUniform
public static double[] getRandomDoubleArray(int length, double min, double max, int seed)
length
- length of arraymin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static int[] getRandomIntArray(int length, int min, int max)
length
- length of arraymin
- minimum valuemax
- maximum valueUniform
public static int[] getRandomIntArray(int length, int min, int max, int seed)
length
- length of arraymin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static long[] getRandomLongArray(int length, long min, long max)
length
- length of arraymin
- minimum valuemax
- maximum valueUniform
public static long[] getRandomLongArray(int length, long min, long max, int seed)
length
- length of arraymin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static short[] getRandomShortArray(int length, short min, short max, int seed)
length
- length of arraymin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static byte[] getRandomByteArray(int length, byte min, byte max)
length
- length of arraymin
- minimum valuemax
- maximum valueUniform
public static byte[] getRandomByteArray(int length, byte min, byte max, int seed)
length
- length of arraymin
- minimum valuemax
- maximum valueseed
- random seedUniform
public static float[] getRandomFloatArray(int length, float min, float max, cern.jet.random.engine.MersenneTwister mt)
length
- length of arraymin
- minimum valuemax
- maximum valuemt
- Mersenne twisterUniform
public static double[] getRandomDoubleArray(int length, double min, double max, cern.jet.random.engine.MersenneTwister mt)
length
- length of arraymin
- minimum valuemax
- maximum valuemt
- Mersenne twisterUniform
public static int[] getRandomIntArray(int length, int min, int max, cern.jet.random.engine.MersenneTwister mt)
length
- length of arraymin
- minimum valuemax
- maximum valuemt
- Mersenne twisterUniform
public static long[] getRandomLongArray(int length, long min, long max, cern.jet.random.engine.MersenneTwister mt)
length
- length of arraymin
- minimum valuemax
- maximum valuemt
- Mersenne twisterUniform
public static short[] getRandomShortArray(int length, short min, short max, cern.jet.random.engine.MersenneTwister mt)
length
- length of arraymin
- minimum valuemax
- maximum valuemt
- Mersenne twisterUniform
public static byte[] getRandomByteArray(int length, byte min, byte max, cern.jet.random.engine.MersenneTwister mt)
length
- length of arraymin
- minimum valuemax
- maximum valuemt
- Mersenne twisterUniform