added function prototype for rndMinMax