# Roll your desired dice
dndR::roll(dice = "4d6", show_dice = TRUE)
# Returned as a number so you can add rolls together or integers
dndR::roll(dice = '1d20') + 5
# Can also re-roll ones if desired
dndR::roll(dice = '4d4', re_roll = TRUE)
Run the code above in your browser using DataLab