Here's the code:
L = loopOut ("cycle" ) ; //you can also put "pingpong" instead of "cycle" for your loop
W = wiggle ( 3, 30 ) ; //3 is the times per second, 30 is the number of pixels it will vacillate
L + W - value ;
If you want to see how it works, watch the tutorial.