6 lines
132 B
Kotlin
Vendored
6 lines
132 B
Kotlin
Vendored
import java.util.Random
|
|
|
|
fun getRandomEnumEntry() =
|
|
with (Enum.values()) {
|
|
get(Random().nextInt(size))
|
|
} |