shuffledList<T> function
Return a shuffled List.
Implementation
List<T> shuffledList<T>(Iterable<T> it, bool cryptographicallySecure) {
List<T> copy = List.from(it);
Random r = cryptographicallySecure ? Random.secure() : Random();
copy.shuffle(r);
return copy;
}