limiting the number of tasks returned in get_random_task