Indulge not thyself in the passion of anger; it is whetting a sword to wound thine own breast, or murder thy friend.
You get ideas from daydreaming. You get ideas from being bored. You get ideas all the time. The only difference between writers and other people is we notice when we're doing it.