nextChar

fun Random.nextChar(alphabet: String): Char

Returns one character drawn uniformly at random from alphabet.

Every position in alphabet is equally likely, so characters that occur more than once in alphabet are proportionally more likely to be returned.

Parameters

alphabet

the characters to choose from.

Throws