probability-0.1: Computations with discrete random variables

Dice

Synopsis

Documentation

type Die = IntSource

sixes :: (Int -> Bool) -> Int -> ProbabilitySource

sixes p n computes the probability of getting p sixes (>1, ==2, ...) when rolling n dice