How to output a random string from a given array of string or from a list in Kotlin
var arr = arrayOf("People", "Are", "Awesome")
You can use the random function: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/random.html
fun main() {
val arr = arrayOf("People", "Are", "Awesome")
println(arr.random())
}
var arr = arrayOf("People", "Are", "Awesome").random()thenprintln(arr)