Fix beta distribution when v < w and min, max != 0, 1.