People who gallivant are out to have a good time as they wander. You might decide to take a year off between high school and college so you can gallivant around the country for a while.
When you gallivant, you meander from one place to another in search of fun. A little kid might gallivant around the preschool classroom during free time, visiting her friends and playing with various toys. Professional musicians are sometimes able to gallivant from city to city in between performances. Gallivant comes from an old-fashioned definition of gallant, "a dashing man." To "play the gallant" was once a popular way to say "to gad about" or to gallivant.