maxRange random val bug and significant digits variable