Add parameter to generate tasks of random duration.