Created
December 16, 2020 14:53
-
-
Save le0nidas/2e932f857a690abc74b024f68f3dc3c3 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 { | |
val randomNumber = Random.nextInt(0, 10) | |
val randomCharacter = listOf("!", "@", "$", "%", "#")[Random.nextInt(0, 5)] | |
"$it$randomCharacter$randomNumber" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment