Doesn’t sound like “random change” if you want it to maintain a specific shape. Random shape is where you have no control of whether it turns into a square or a circle or a blob or a snake.
If you’re really doing that snake thing, you should animate a single, thick stroke on the layer ABOVE the media and then use a reverse-alpha track matte (F4) to reveal the media.