kotest-property / io.kotest.property.arbitrary / element

element

fun <T> Arb.Companion.element(collection: Collection<T>): Arb<T>
fun <T> Arb.Companion.element(vararg collection: T): Arb<T>

Returns an Arb whose values are chosen randomly from those in the supplied collection. May not cover all items. If you want an exhaustive selection from the list, see Exhaustive.collection