shuffled method

KtList<T> shuffled([
  1. Random? random
])

Returns a new list with the elements of this list randomly shuffled.

Implementation

KtList<T> shuffled([math.Random? random]) {
  return toMutableList()..shuffle(random);
}