shuffle method

List<T> shuffle([
  1. Random? random
])

Implementation

List<T> shuffle([Random? random]) {
  random ??= _r;
  List<T> list = [];

  while (isNotEmpty) {
    list.add(popRandom(random));
  }

  return list;
}