Random movement question

Hey everyone. Small (but maybe not - I haven’t been able to figure it out) question.

I have a movie clip I want to move across the stage in different directions. Like maybe up, then down, then left, then up again, right… etc, randomly. And how do I get this to coincide with a number of frames, if possible (rather than number of pixels moved). Thanks a bunch!!:nerd: