fix rand! for Beta distribution