fixing max float, RNG