added rndMinMax function