seedRandom(textIndex,true); myVal = random(-100,100); midPoint = (inPoint+outPoint)/2; if (time < midPoint) linear(time,inPoint,midPoint,0,myVal) else linear(time,midPoint,outPoint,myVal,0)