Kotlin HashSet shuffled()
Syntax & Examples
Syntax of HashSet.shuffled()
The syntax of HashSet.shuffled() extension function is:
fun <T> Iterable<T>.shuffled(random: Random): List<T>
This shuffled() extension function of HashSet returns a new list with the elements of this list randomly shuffled using the specified random instance as the source of randomness.