#' Roll dnd dice
#'
#' @param d Number of sides of dice.
#' @param n Number of dice to roll. Defaults to 1.
#'
#' @export
droll <- function(d, n = 1) {
sample(1:d, n, replace = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.