Group the two terms containing to obtain the mixture distribution
The first component is a Standard Cauchy distribution. The second is normalized because
For this symmetric component, let . Its density is , and hence its cumulative distribution function and quantile function are
The independent sign is positive or negative with equal probability. For one sample, use the next three independent uniforms in the given sequence and return
The Cauchy branch follows from its quantile function, while the other branch follows from the magnitude law and fair sign just derived. Independence of the branch selection and component draws therefore gives exactly the displayed mixture distribution. Discard the zero-probability endpoint draw to keep the computation finite, and use a fresh block of three uniforms for the next sample. This is the symmetric rational mixture sampler.
One can alternatively use the root solution's rejection sampling with a Standard Cauchy distribution proposal. The density ratio is , bounded by because . Accept the Cauchy draw with probability using a fresh independent uniform.