What does "vagary" mean?

Vagary: Hence, a wandering of the thoughts; a wild or fanciful freak; a whim; a whimsical purpose. "The vagaries of a child." Spectator. They changed their minds, Flew off, and into strange vagaries fell. Milton.

Sources