moved makeRandomDuration