Added ability to generate problems from max and min value
MERGED