Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Documentation
type Probability = Rational Source #
type Dist = T Probability Source #
sixes :: (Int -> Bool) -> Int -> Probability Source #
sixes p n
computes the probability of getting
p sixes (>1
, ==2
, ...) when rolling n dice
g3 :: Probability Source #