Move _quiz_check_num_random() to class.