R/shuffle.R

#' Shuffle cards
#'
#' @param cards A character vector of cards
#' @return A character vector of cards
#' @export
#' @examples
#' discard = c("this","that")
#' shuffle(discard)
#'
shuffle <- function(cards) {
  sample(cards)
}
BoardGameSimulator/HootOwlHoot documentation built on May 6, 2019, 7:58 a.m.