Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val quotes = listOf("Look behind you, \na Three-Headed Monkey!", "You fight like a dairy farmer",
- "I am Guybrush Threepwood, mighty pirate", "So you want to be a pirate, eh? \nYou look more like a flooring inspector",
- "Sometimes when it's quiet, \nI can still hear the monkeys", "I think we're having a real moment here")
- when (i) {
- 0 -> output.text = getString(R.string.quote1)
- 1 -> output.text = getString(R.string.quote2)
- 2 -> output.text = getString(R.string.quote3)
- 3 -> output.text = getString(R.string.quote4)
- 4 -> output.text = getString(R.string.quote)
- 5 -> output.text = getString(R.string.quote5)
- else -> output.text = quotes[(0..5).random()]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement