Error with uniform_rng

Thanks a lot! This solves the problem.