Added the ability to generate randomized problems.