Making movie clip move in random directions

Can anyone help me with this? I know how to make a movieclip move after another movieclip, but I don’t know how to do this. Thanks in advance ^^