There is a system for it in a DnD sourcebook, Heroes of Battle. Worth taking a look at.
I myself use only my whim. It reinforces the fact that as DM, I am Crom and That Which Must Not Be Named all rolled into one. And it also means that the game becomes a tad more unpredictable, which just adds...