My thoughts are created on the quantum level, as a result of quantum processes in my brain that combines sensory input, instincts, memory and emotional and physical state. Every impuls then goes through the pipeline of our knowledge, beliefs, emotional state, physical energy, place and time, etc. and is eventually processed further or cancelled. At the moment it has come out of this pipeline and we face the choice to act on it or not, we choose from a variety of mechanisms to make that choice, be it flipping a coin, asking our partner, evaluate possible outcomes, checking favourable conditions, or just randomly pick one. We call that 'free will' but it is in fact the result of a very complex process. One thing is for sure, given the number of variables it is definitely not deterministic.