A module with functions for querying the probabilities of various outcomes.
Gets the probability that the outcome will satisfy the given predicate. For example:
chancePred (<= 2) d6 == 1/3 -- The chance of getting 2 or less on a d6 chancePred even d6 == 1/2 -- The chance of rolling an event number on a d6
Gets the probability that the given relation will hold between the two events. For example:
chanceRel (==) d6 d6 == 1/6 -- The chance of rolling doubles on d6 chanceRel (>) (2*d6) d12 -- The chance of beating a d12 with two d6