n = marker.nearestKey(time).index; if (marker.key(n).time < time){ minVal = [0.1*thisComp.width, 0.1*thisComp.height]; maxVal = [0.9*thisComp.width, 0.9*thisComp.height]; random(minVal,maxVal) } else { value }