Constructing probability distributions