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