I often have the experience that I've discovered a really good idea in a dream. It happens often enough that I recognize it as a dream and I become curious about whether it will actually be a good idea when I wake up, because almost as often it is random and silly. I spend the rest of the dream intent on remembering it, and usually I do. Every once in a while I get a melody or an idea I want to run with, but it always makes me excited and ready to work.