# roll one 6-sided dice
roll_dice_formula(dice_formula = "1d6")
# roll one 8-sided dice
roll_dice_formula(dice_formula = "1d8")
# roll two 6-sided dice
roll_dice_formula(dice_formula = "2d6")
# roll two 6-sided dice, explode dice on a 6
roll_dice_formula(dice_formula = "2d6e6")
# roll three 6-sided dice, keep highest 2 rolls
roll_dice_formula(dice_formula = "3d6kh2")
# roll three 6-sided dice, keep lowest 2 rolls
roll_dice_formula(dice_formula = "3d6kl2")
# roll four 6-sided dice, keep highest 3 rolls, but explode on a 6
roll_dice_formula(dice_formula = "4d6kh3e6")
# roll one 20-sided dice, and add 4
roll_dice_formula(dice_formula = "1d20+4")
# roll one 4-sided dice and one 6-sided dice, and sum the results
roll_dice_formula(dice_formula = "1d4+1d6")
Run the code above in your browser using DataLab