Learn R Programming

prithulib (version 1.0.2)

cards: Choosing a card

Description

An event of choosing a card from a pack of 52 cards (Joker optional)

Usage

cards(n, joker = FALSE)

Arguments

n

is the number of cards to be chosen (default 1)

joker

TRUE includes the Joker card in the deck (default FALSE)

Value

The chosen card(s)

Examples

Run this code
# NOT RUN {
cards(3, joker = TRUE)
# }

Run the code above in your browser using DataLab