Exact probabilities

Haze computes probabilities exactly, with fractions, instead of estimating them by running a simulation many times. A random value is declared with input and a distribution after ~. flip(p) is true with probability p, and uniform(a, b) picks a whole number from a to b.

#prob asks how likely something is, and #eval shows a whole distribution. Hover over a number to see its exact value. Try changing the dice to uniform(1, 8).