fun <T> MutableList<T>.shuffle()
Randomly shuffles elements in this mutable list.
Randomly shuffles elements in this list.
See: https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm
fun <T> MutableList<T>.shuffle(random: Random)
Randomly shuffles elements in this mutable list using the specified random instance as the source of randomness.
See: https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm
fun <T> MutableList<T>.shuffle(random: Random)
Randomly shuffles elements in this mutable list using the specified random instance as the source of randomness.
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/shuffle.html