getRandomElement

fun <E> Iterable<E>.getRandomElement(rand: Random): E

Function that will return a random element from the iterable.

Sources

Katlib source
Link copied to clipboard