public interface ShufflingEngine<T extends java.lang.Comparable> extends BaseInterface<T>
ARRAY_IS_EMPTY, DATA_TYPE_NOT_SUPPORTED_YET, DECIMAL_RADIX, DELIMITER_COMMA, ELEMENT_NOT_FOUND, LIST_IS_EMPTY, OPERATION_NOT_SUPPORTED_YET
Modifier and Type | Method and Description |
---|---|
default int |
getRandomNumberInRange(int min,
int max)
Generate a random number between min and max (both inclusive).
|
void |
shuffle(T[] objects) |
checkArray, checkIntArray, checkList
void shuffle(T[] objects)
default int getRandomNumberInRange(int min, int max)
min
- lower bound (inclusive)max
- upper bound (inclusive)