AS2 Help-Random line movement

Does anyone know how to code a mc is a line that moves randomly or connected to another mc while staying fixed on the other end? I have a project that moves button around the screen randomly with lines that follow them around from a center point.I:-)

I cannot fiqure this out and any help will be much appreciated!!