kotlin-stdlib / kotlin.collections / shuffled shuffled Common JVM JS 1.2 fun <T> Iterable<T>.shuffled(): List<T>(Common source) (JVM source) (JS source) Returns a new list with the elements of this list randomly shuffled. Common JVM JS Native 1.3 fun <T> Iterable<T>.shuffled(random: Random): List<T>(source) JVM 1.2 fun <T> Iterable<T>.shuffled(random: Random): List<T>(source) Returns a new list with the elements of this list randomly shuffled using the specified random instance as the source of randomness.