segMin = .3; //minimum segment duration segMax = .7; //maximum segment duration minVal = [0.1*thisComp.width, 0.1*thisComp.height]; maxVal = [0.9*thisComp.width, 0.9*thisComp.height]; end = 0; j = 0; while ( time >= end){ j += 1; seedRandom(j,true); start = end; end += random(segMin,segMax); } endVal = random(minVal,maxVal); seedRandom(j-1,true); dummy=random(); //this is a throw-away value startVal = random(minVal,maxVal); ease(time,start,end,startVal,endVal)