Last active
November 22, 2018 12:52
-
-
Save JulioBorges/986249897f6ef7bbb86f4320a4d4b5e7 to your computer and use it in GitHub Desktop.
Sorteio Connection Day
This file contains hidden or 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
| import kotlin.random.Random | |
| class Sorteio { | |
| fun main() { | |
| val listaParticipantes = listOf(0) | |
| val listaSorteados = listOf(0) | |
| val listaElegiveis = listaParticipantes.minus(listaSorteados) | |
| println("Participantes:") | |
| println(listaElegiveis) | |
| println("Sorteando . . .") | |
| val ganhador = listaElegiveis.random() | |
| println("O ganhador foi $ganhador") | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Available in https://pl.kotl.in/HkDtUQ4AQ