How do I make movie clips move in a random direction?

The title says it…

How can I have a movie clip move in a random direction within an area? Like have a circle not go outside of the square, but go in random directions in it.