# NOT RUN {
set.seed(42)
# Density of 2d6 + 5
droll(12, 2 * d6 + 5)
# Distribution function of 2d6 + 5
proll(12, 2 * d6 + 5)
# Quantile function of 2d6 + 5
qroll(0.5, 2 * d6 + 5)
# Roll 2d6 + 5 (generate random deviate)
rroll(1, 2 * d6 + 5)
# }
Run the code above in your browser using DataLab