To wander restlessly or aimlessly; also used as an exclamation expressing surprise or mild annoyance.
Verb form from Middle English 'gad' (a pointed stick or rod), metaphorically meaning to move about abruptly; as an interjection, it's a euphemistic mincing of 'God.'
When people say 'gads!' they're actually using a centuries-old way to swear without swearing—'gads' is a bowdlerized version of 'God's,' used by people trying to stay proper.
Complete word intelligence in one call. Free tier — 50 lookups/day.