#for picking out the first card deal <- function(cards) { cards[1, ] } #for shuffling shuffle <- function(deck) { random <- sample(1:52, size = 52) deck[random, ] } deck2 <- shuffle(deck)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter