findRandom

fun findRandom(predicate: Predicate<T> = Predicate { true }): T?

Gets a random entity from this repository that matches the given predicate. If no entity was found, this function returns null.