random string generator kotlin
snippet in kotlin

random string generator kotlin

user4588

private fun randomID(): String = List(16) {
  (('a'..'z') + ('A'..'Z') + ('0'..'9')).random()
}.joinToString("")