(Archaic
definition) A sudden
desire or change of mind, especially
one that is unusual or unexplained.
‘He opened the door on a whim, expecting nothing, but instead, he was
faced with
four sets of eyes.’
‘She did it on a whim when the opportunity presented itself, and she died four days later.’
‘Apparently on a whim, Wonka suddenly decides to reopen his doors to
five children.’