1
1
Fork 0
AtomicKotlinCourse/Introduction to Objects/Sets/Exercise 2/task.md

419 B

Sets (#2)

Write the function experiment() to generate random Ints from 1 through 25 and place the results in a Set. Discover an approximate value for the minimum number of randomly-generated Ints required before the Set contains all values 1 through 25. Return this approximate value as a result of the experiment() function.

main() repeats your experiment 1000 times and displays the average result.