RosettaCodeData/Task/Playing-cards/Groovy/playing-cards-2.groovy
2023-07-01 13:44:08 -04:00

3 lines
75 B
Groovy

Deck deck = new Deck()
deck.shuffle()
(0..<5).each { println deck.deal() }