d20: Roll dice

View source: R/d20.R

d20R Documentation

Roll dice

Description

Roll some dice

Usage

d20(n)

d4(n)

d6(n)

d8(n)

d10(n)

d12(n)

d100(n)

Arguments

n

A scalar integer indicating the number of dice to roll

Value

A vector of dice rolls

Functions

  • d4(): Roll n d4 dice

  • d6(): Roll n d6 dice

  • d8(): Roll n d8 dice

  • d10(): Roll n d10 dice

  • d12(): Roll n d12 dice

  • d100(): Roll n d100 dice

Examples

d20(n=2)


jarad/dnd5e documentation built on Oct. 15, 2023, 5:55 p.m.