Skip to contents

Return a five card hand from a deck of cards, as an integer

Usage

deal_hand(deck, size = 5)

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