1. I had a sudden whim to take a swim in the middle of the night.2. I quit my job on a whim.3. You cannot indulge your every whim whenever you feel like it.
 have a whim to do something on a whim當副詞用.
1. 深夜時我心血來潮想游泳.2. 我今天心血來潮把工作辭掉了.3. 你不能肆無忌憚的做心血來潮的事情.
Do you think this married man has lterior motives when he offered to drive a female colleague home?