W3cubDocs

/Kotlin

shuffle

inline fun <T> MutableList<T>.shuffle()

Platform and version requirements: Kotlin 1.2

Randomly shuffles elements in this mutable list.

inline fun <T> MutableList<T>.shuffle(random: Random)

Platform and version requirements: Kotlin 1.2, JVM

Randomly shuffles elements in this mutable list using the specified random instance as the source of randomness.

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/shuffle.html