minmaxrnc
