Fix randbeta to use the same algorithm for all methods