If i've understood well, you simply want to randomselect a Task and remove it from the task list.
This should do the trick :
_tasks = [
_task1,
_task2,
_task3,
_task4,
_task5,
_task6
];
_randomTask = selectRandom _tasks;
_tasks deleteAt (_tasks find _randomTask);