to run in a zigzag
Example: "Please excuse the delay. I ran in a zigzag through the city to find our meeting place." (Means: without a clear destination, not on a straight path).