Fixing bug in new_uniform_generator. Template was corrected and the factory has been modified.