Every thought that you have ever had has been already thought of a million times by millions of people throughout linear time, so to answer your question, they are given to you without you even being aware of them.
Your subconscious mind or soul/spirit anticipates your need before you even know you need it and provides a link to the ultimate computer (ether) designed by the creator for every incarnated soul in 3 dimensional space.
We on Earth have been conditioned to believe that ideas come from our brain, which is absurd when you stop and think about it. Our brain are simple memory chips designed to organize experiences into thought processes.
Ideas come from a power way beyond our brain's capacity, the Pineal Gland is our browser and each soul has it's own unique personality, yet ultimately is here to achieve a common goal which is to enlighten our minds that we have access to a great deal of knowledge given to us by the Creator.