randomFrom

fun <T> randomFrom(array: Array<T>): T

Pick a random object from the given array. The array must not be empty.