random.piecewise_constant