public class RandomUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
BIGDECIMAL |
int |
BIGINTEGER |
int |
DOUBLE |
int |
INTEGER |
| Constructor and Description |
|---|
RandomUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<Double> |
randomDoubleList(double min,
double max,
int length)
Returns a list of randomly generated doubles using the minimum and maximum
data point values and length.
|
static List<Double> |
randomDoubleList(double min,
double max,
int minLength,
int maxLength)
Returns a list of randomly generated doubles using the minimum and maximum
data point values and the minimum and maximum lengths.
|
static int |
randomIndex(Collection<?> collection)
Returns a random index for the collection.
|
static int |
randomIndex(Object[] array)
Returns a random index for the array.
|
static List<Integer> |
randomIntegerList(int min,
int max,
int length)
Returns a list of randomly generated integers using the minimum and maximum
data point values and length.
|
static List<Integer> |
randomIntegerList(int min,
int max,
int minLength,
int maxLength)
Returns a list of randomly generated integers using the minimum and maximum
data point values and the minimum and maximum lengths.
|
static Object |
randomObject(Collection<?> collection)
Returns a random object from a collection of objects.
|
static Object |
randomObject(Object[] array)
Returns a random object from a collection of objects.
|
static Plate |
randomPlateInteger(int rows,
int columns,
int min,
int max,
int minLength,
int maxLength,
int groupNumber,
int wellNumber,
String label)
Generates random integer data sets for each well in the plate using the
minimum and maximum data point values and the minimum and maximum length
values.
|
static Plate |
randomPlateInteger(int rows,
int columns,
int min,
int max,
int wellNumber,
String label)
Generates random integer data sets for each well in the plate using the
minimum and maximum data point values and the minimum and maximum length
values.
|
static Stack |
randomStackInteger(int rows,
int columns,
int min,
int max,
int minLength,
int maxLength,
int setNumber,
int wellNumber,
String label,
int plateNumber)
Generates a random integer stack with the specified number of plates.
|
static Stack |
randomStackInteger(int rows,
int columns,
int min,
int max,
int wellNumber,
String label,
int plateNumber)
Generates a random integer stack with the specified number of plates.
|
static Well |
randomWellInteger(int min,
int max,
int rowMin,
int rowMax,
int columnMin,
int columnMax,
int length)
Returns a random well between the indices.
|
static Well |
randomWellInteger(int min,
int max,
int rowMin,
int rowMax,
int columnMin,
int columnMax,
int minLength,
int maxLength)
Returns a random well index between the indices.
|
static WellSet |
randomWellSetInteger(int min,
int max,
int rowMin,
int rowMax,
int columnMin,
int columnMax,
int length)
Returns a random well set with wells between the indices.
|
static WellSet |
randomWellSetInteger(int min,
int max,
int rowMin,
int rowMax,
int columnMin,
int columnMax,
int lengthMin,
int lengthMax)
Returns a random well set with wells between the indices.
|
public final int DOUBLE
public final int INTEGER
public final int BIGDECIMAL
public final int BIGINTEGER
public static List<Double> randomDoubleList(double min, double max, int minLength, int maxLength)
double - minimum data point valuedouble - maximum data point valueint - minimum list lengthint - maximum list lengthpublic static List<Double> randomDoubleList(double min, double max, int length)
double - minimum data point valuedouble - maximum data point valueint - length of the listpublic static Well randomWellInteger(int min, int max, int rowMin, int rowMax, int columnMin, int columnMax, int minLength, int maxLength)
BigDecimal - minimum data point valueBigDecimal - maximum data point valueint - minimum row indexint - maximum row indexint - minimum column indexint - maximum column indexint - minimum list lengthint - maximum list lengthpublic static Well randomWellInteger(int min, int max, int rowMin, int rowMax, int columnMin, int columnMax, int length)
int - minimum data point valueint - maximum data point valueint - minimum row indexint - maximum row indexint - minimum column indexint - maximum column indexint - number of data pointspublic static WellSet randomWellSetInteger(int min, int max, int rowMin, int rowMax, int columnMin, int columnMax, int lengthMin, int lengthMax)
int - minimum integer valueint - maximum integer valueint - minimum row indexint - maximum row indexint - minimum column indexint - maximum column indexint - minimum number of wells in setint - maximum number of wells in setpublic static WellSet randomWellSetInteger(int min, int max, int rowMin, int rowMax, int columnMin, int columnMax, int length)
int - minimum data point valueint - maximum data point valueint - minimum row indexint - maximum column indexint - minimum column indexint - maximum column indexint - the number of wellspublic static Plate randomPlateInteger(int rows, int columns, int min, int max, int minLength, int maxLength, int groupNumber, int wellNumber, String label)
int - the plate typeint - minimum data point valueint - maximum data point valueint - minimum data set lengthint - maximum data set lengthint - the number of groupsint - the number of wellsString - the plate labelpublic static Plate randomPlateInteger(int rows, int columns, int min, int max, int wellNumber, String label)
int - the number of rowsint - the number of columnsint - minimum data point valueint - maximum data point valueint - the number of wellsString - the plate labelpublic static Stack randomStackInteger(int rows, int columns, int min, int max, int minLength, int maxLength, int setNumber, int wellNumber, String label, int plateNumber)
int - number of plate rowsint - number of plate columnsint - minimum data set valueint - maximum data set valueint - minimum well data set lengthint - maximum well data set lengthint - the number of sets in each plateint - the number of wells in each plateString - the stack labelint - the number of plates in the stackpublic static Stack randomStackInteger(int rows, int columns, int min, int max, int wellNumber, String label, int plateNumber)
int - number of plate rowsint - number of plate columnsint - minimum data set valueint - maximum data set valueint - the number of wells in each plateString - the stack labelint - the number of plates in the stackpublic static List<Integer> randomIntegerList(int min, int max, int minLength, int maxLength)
int - minimum data point valueint - maximum data point valueint - minimum list lengthint - maximum list lengthpublic static List<Integer> randomIntegerList(int min, int max, int length)
int - minimum data point valueint - maximum data point valueint - length of the listpublic static Object randomObject(Collection<?> collection)
Collection - the collectionpublic static Object randomObject(Object[] array)
Object[] - the arraypublic static int randomIndex(Collection<?> collection)
Collection - the collectionpublic static int randomIndex(Object[] array)
Object[]array - the arrayCopyright © 2017. All rights reserved.