Created
August 23, 2021 15:04
-
-
Save anny0739/3025f2931678cf91304828caabd86ee6 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
import kotlin.random.Random.Default.nextInt | |
fun main(args: Array<String>) { | |
val trialCount = 5 | |
randomPrint(trialCount) | |
} | |
fun randomPrint(trialCount: Int) { | |
repeat(trialCount) { | |
println(nextInt()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment