For me, the best way to generate or make a good idea out of nothing is to be totally relaxed. You should not be under any stress. Your mind has to be totally clear.
Also I have noticed that I make good ideas when I am not trying to. I guess that then my brain is relaxed and good ideas are simply generating by themselves.