function U01d input RngStream g "RngStream"; output Real out "Uniform random number"; output RngStream gout "Updated RngStream"; end U01d;