random

Returns a random character from this char sequence.

Since Kotlin

1.3

Throws

if this char sequence is empty.


Returns a random character from this char sequence using the specified source of randomness.

Since Kotlin

1.3

Throws

if this char sequence is empty.