do_single_random_task is now do_task. The task_params and return value are described.