Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
random
Returns a random element from this range.
Exceptions
IllegalArgumentException
- if this range is empty.
Returns a random element from this range using the specified source of randomness.
Exceptions
IllegalArgumentException
- if this range is empty.