Now I would suggest closing LotteryPicker class, T...
# announcements
a
Now I would suggest closing LotteryPicker class, There is no need to create specific subclasses.
@Danilo Herrera Function `refill`: you do not need explicit for. You can rewrite its body to:
Copy code
(1..size).forEach { add(it) }
or even
Copy code
addAll(1..size)
👍 1
d
Nice! I just realized that the set would have to be cleared first, but kudos for more concise method of adding the numbers