Ideas can come at any time, anywhere. They are inspired by the world around us. Usually, they happen at the most inconvenient time, like when you are out jogging in the park or drinking champagne at a party or shopping in the supermarket with a kid hanging off the trolley.
Develop the habit of writing down your ideas. Most ideas will disappear in three seconds. Hold on to them while you get your small notebook out of your pocket.