Where do good ideas come from?

It only takes one good idea to make millions of dollars.

So where do you get good ideas? How soon can you come up with your million dollar idea?