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