shuffled

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.

Since Kotlin

1.3

expect fun <T> Iterable<T>.shuffled(): List<T>(source)

Since Kotlin

1.2
actual fun <T> Iterable<T>.shuffled(): List<T>(source)

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

Since Kotlin

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.

Since Kotlin

1.2

actual fun <T> Iterable<T>.shuffled(): List<T>(source)

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

Since Kotlin

1.2
actual fun <T> Iterable<T>.shuffled(): List<T>(source)

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

Since Kotlin

1.3
actual fun <T> Iterable<T>.shuffled(): List<T>(source)

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

Since Kotlin

1.8
actual fun <T> Iterable<T>.shuffled(): List<T>(source)

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

Since Kotlin

1.8