randomOrNull
Returns a random element from this array, or null if this array is empty.
Since Kotlin
1.4Returns a random element from this array using the specified source of randomness, or null if this array is empty.
Since Kotlin
1.4Returns a random element from this collection, or null if this collection is empty.
Since Kotlin
1.4Returns a random element from this collection using the specified source of randomness, or null if this collection is empty.