losowy generator strun Kotlin
private fun randomID(): String = List(16) {
(('a'..'z') + ('A'..'Z') + ('0'..'9')).random()
}.joinToString("")
Expensive Eel
private fun randomID(): String = List(16) {
(('a'..'z') + ('A'..'Z') + ('0'..'9')).random()
}.joinToString("")
fun randomString(length: Int): String = List(length) {
(32..126).random().toChar()
}.joinToString("")
fun randomChar(): Char = (32..126).random().toChar()