Generate the problem.