Perhaps do a deterministic transform on the beta distribution RV? ping @junpenglao, who may know better than me.