Using code, I'd like to make a movie clip hover, and slightly sway back and forth

randomly perhaps. I would like to figure out a way to animate a movie clip so that it is slightly moving a little bit up and down and left and right.

What is the easiest way to do this?