//Made by Dan Ebberts from VideoCopilot
tmin = 4.125; //minimum segment duration(can't be zero)
tmax = 19.25; //maximum segment duration = 0;
initialSeed = 11;
end = 0;
j = initialSeed;
while (time >= end){
j +=1;
seed_random(j,true);
start = end;
end += random(tmin,tmax);
}
targetTime = random(this_comp.duration);
seed_random(j-1,true);
dummy=random(); //this is a throw-away value
oldTime = random(this_comp.duration);
linear(time,start,end,oldTime,targetTime)