this code ```fun generate(){ println("${random...
# announcements
a
this code
Copy code
fun generate(){
    println("${randomWord()}${randomKey()}${randomWord()}${randomWord()}${randomKey()}${randomWord()}${randomSymbol()}${randomWord()}${randomSymbol()}")
}
prints
String Int String String Int String Char String and Char
respectively and how do i make this code to change it place randomly in every run that can be
String  String Int String Int Char String Char String
t
What's the difference between the result of
randomWord
,
randomKey
and
randomSymbol
functions ?
a
All fun randomWord randomKey and symbol are the function that I made it but the difference is as I answer it in my question randomWord prints string, randomKey prints int and Symbol prints Char
j
my first reaction to a solution is make list of these strings and then randomly choose indexes.
it doesn't have to be in that order right? and can it be any of amount of those randoms?
m
List(100) { randomWord() }.shuffle().joinToString()