When I run, I think about everything: physics, family problems, plans for the weekend. I haven't made any big discoveries on a run, but it does give me time to think through problems. Some solutions are obvious, but they are only obvious when you are relaxed enough to find them.
When I first thought about writing the book Charlie and the Chocolate Factory, I never originally meant to have children in it at all!