## Rolling four six-sided dice and keeping the three highest die rolls
getSumProbs(ndicePerRoll = 4,
nsidesPerDie = 6,
nkept = 3)
## Rolling five four-sided dice and adding 1 to each die roll
getSumProbs(ndicePerRoll = 5,
nsidesPerDie = 4,
perDieModifier = 1)
## Rolling one twenty-sided die and adding 12 to the result
getSumProbs(ndicePerRoll = 1,
nsidesPerDie = 20,
sumModifier = 12)
Run the code above in your browser using DataLab