if (howMany >= howManyCombos) {
Collections.shuffle(allCombinations);
return allCombinations;
}
RandomDataGenerator rdg = new RandomDataGenerator(RandomManager.getRandom());
int[] indices = rdg.nextPermutation(howManyCombos, howMany);
List<List<Number>> result = new ArrayList<>(indices.length);
for (int i = 0; i < indices.length; i++) {
result.add(allCombinations.get(i));
}
Collections.shuffle(result);