ru function

Generalized ratio-of-uniforms sampling