Converted ProblemGenerator to use RandomRange