Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

러시안 룰렛 #2

Open
pjhjohn opened this issue Nov 14, 2018 · 0 comments
Open

러시안 룰렛 #2

pjhjohn opened this issue Nov 14, 2018 · 0 comments

Comments

@pjhjohn
Copy link

pjhjohn commented Nov 14, 2018

🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫🔫

@Test
fun russianRoulette() {
    listOf("권태환", "정현지", "강경완", "조희주", "서효정", "윤영", "장인수", "박준호", "김대영")
        .shuffled()
        .take(5)
        .forEachIndexed { index, name ->
            println("${index + 1}등 : $name")
        }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant