Answers for "kotlin get random letter"

0

kotlin get random string

fun randomString(length: Int): String = List(length) {
	(32..126).random().toChar()
}.joinToString("")
Posted by: Guest on February-27-2022
0

kotlin get random character

fun randomChar(): Char = (32..126).random().toChar()
Posted by: Guest on February-27-2022

Browse Popular Code Answers by Language