Try this. This animates between 2 keyframes and adds a random amount to the second keyframe. You can change the randX and randY variables to fit whatever ranges you want (will pick a random # between the 2 in parentheses).
The only note, this random # is being generated based on the index of your layer, meaning two layers in different comps will have the same random if they have the same index. All layers inside a single comp, though, should be entirely random.
Hope this is helpful!
try{
seedRandom(index, true);
var randY = gaussRandom(0, 100);
var randX = gaussRandom(0, 100);
var key1Time = thisProperty.key(1).time;
var key2Time = thisProperty.key(2).time;
var key3Time = thisProperty.key(3).time;
var key1Val = thisProperty.key(1).value;
var key2Val = thisProperty.key(2).value + [randX, randY];
var key3Val = thisProperty.key(3).value;
if (time > key1Time && time < key2Time){
ease(time, key1Time, key2Time, key1Val, key2Val);
} else if (time < key3Time) {
ease(time, key2Time, key3Time, key2Val, key3Val);
} else {
value;
}
} catch(e){ value; }
David Conklin
Motion Designer