Answers for "kotlin string get random"

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

Browse Popular Code Answers by Language