Updating the random sched to take into account the previously executed tasks