on a whim

on a whim

Based on a sudden, impulsive urge, desire, or idea; without careful planning or because of a capricious inclination. On a whim, we drove to the beach for the weekend. Major governmental policies cannot be decided on a whim; they have to be carefully and rationally thought through.
See also: on