generating Min and Max with epsilon