People often claim that they did something on a whim, but what does that mean?
Most of the time the person making such a claim doesn't actually know what the term means.
Essentially it means that a decision has been made without reference to any clear reason for doing so.