math_templates.h: RandomValueGenerator fix.