fun main() {
val oda1 = mutableListOf("kadir", "talha", "oğuz")
println("first winner is ${oda1.random()}") }
I can print a random name with this method, but I want to continue to get a second random name too(rather than selected one). My question is; How can I remove the printed string element, and get a random name with remained names?
Aucun commentaire:
Enregistrer un commentaire