In a haphazard manner; in a random, chaotic, and incomplete manner.
On different tacks, now toward, and now away from, the land.