uniform and discrete distributions