We start with a probability distribution π on a finite set D and a function f : D →