How would you modify this function to handle edge cases where the provided minimum and maximum values are equal?