Return a five card hand from a deck of cards, as an integer
Arguments
- deck
a deck created by
new_deck()
.- size
hand size, default = 5.
Details
Uses sample()
to select random cards.
Examples
deal_hand(new_deck())
#> [1] 44 22 11 36 37
Return a five card hand from a deck of cards, as an integer
a deck created by new_deck()
.
hand size, default = 5.
Uses sample()
to select random cards.
deal_hand(new_deck())
#> [1] 44 22 11 36 37