RANDOM

RANDOM("random", { string, random -> string.toCharArray().map { it.toRandomCase(random) }.joinToString("") })

Makes each letter randomly uppercase or lowercase.

Functions

Link copied to clipboard
open override fun toString(): String

Returns the descriptor of the capitalization mode.

Link copied to clipboard
fun transform(string: String, random: Random = Random.Default): String

Invokes transformer with random.

Properties

Link copied to clipboard
val descriptor: String

the name of the capitalization mode

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int