randomElement

fun <R> Iterable<R>.randomElement(randomGenerator: ERROR CLASS: Symbol not found for RandomGenerator): R

Returns a random element of the Iterable using the provided randomGenerator.