## Probability of rolling at least one 6 when rolling four six-sided dice
getEventProb(nrolls = 4,
ndicePerRoll = 1,
nsidesPerDie = 6,
eventList = list(6))
## Probability of rolling a 6, followed by a 5, followed by either a 1, 2,
## or 3 when rolling three six-sided dice
getEventProb(nrolls = 3,
ndicePerRoll = 1,
nsidesPerDie = 6,
eventList = list(6, 5, 1:3),
orderMatters = TRUE)
## Probability of rolling no 10's when rolling two ten-sided dice
getEventProb(nrolls = 2,
ndicePerRoll = 1,
nsidesPerDie = 10,
eventList = list(1:9,1:9))
Run the code above in your browser using DataLab