I'm trying to make a random generator app for streamlining random quests in a tabletop game. The goal is to hit the generate button and have the results shown in the textview on activity page as a list. When I hit "Run" the code runs and I see the list of generated results in the console at the bottom of android studio, however it's not showing any text in the text view. I am extremely new to coding and I'm sure i'm missing something simple but i've been stuck for days and could use some help. I am not getting any errors, although i'm also not sure i'm using the main function right either. So far I have the main activity with a button that takes you to the second activity (where i want the random results to show). Any help is greatly appreciated.
fun main(args: Array<String>) {
val questGiver = arrayOf("John", "notJohn")
val random = Random()
val randomQuestGiver =
questGiver[random.nextInt(questGiver.size)]
println("Quest Giver: $randomQuestGiver")
print(args.contentToString())
}