-
-
Save le0nidas/b9b8fcbdefdf39bf74aa4542ed8d6233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val animals = listOf("Lion", "Penguin", "Giraffe", "Whale", "Shark") | |
val usernames = animals.map { animalAsBase -> | |
val randomNumber = Random.nextInt(0, 10) | |
val randomCharacter = listOf("!", "@", "$", "%", "#")[Random.nextInt(0, 5)] | |
"$animalAsBase$randomCharacter$randomNumber" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment