Answers for "kotlin get random character"

5

random string generator kotlin

private fun randomID(): String = List(16) {
  (('a'..'z') + ('A'..'Z') + ('0'..'9')).random()
}.joinToString("")
Posted by: Guest on July-11-2020
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