vagary

n.

  1. A wandering or strolling.
  2. Hence, a wandering of the thoughts; a wild or fanciful freak; a whim; a whimsical purpose.