randomEleList<T> static method
Implementation
static List<T> randomEleList<T>(List<T> source, int count) {
if (count >= source.length) return List.of(source);
return randomInts(source.length)
.sublist(0, count)
.map((e) => source[e])
.toList();
}