kotest-assertions / io.kotest.properties / kotlin.random.Random

Extensions for kotlin.random.Random

nextPrintableChar

Returns the next pseudorandom, uniformly distributed value from the ASCII range 32-126.

fun Random.nextPrintableChar(): Char

nextPrintableString

Generates a String of length by calling nextPrintableChar

fun Random.nextPrintableString(length: Int): String