You draw independent uniforms on [0,1] until their running sum exceeds one. · QuantMax