generate correct number of questions