shuffled method

List<E> shuffled([
  1. Random? random
])

Returns a new, randomly shuffled list.

If random is given, it is being used for random number generation.

Implementation

List<E> shuffled([Random? random]) => toList()..shuffle(random);