Change to antithetic generation mode.
SetAntithetic(g,a)
With a <> 0, the RngStream g will generate antithetic numbers (U-1 instead of U)
g2 := g1; g2 := CMRG.SetAntithetic(g2,1); u1 := CMRG.RandU01(g1); u2 := CMRG.RandU01(g2); // u1 = 0.37564 // u2 = 0.62436
function SetAntithetic input RngStream g "RngStream"; input Integer a "Antithetic switch"; output RngStream gout "Updated RngStream"; end SetAntithetic;