Ah the classic omniscience and free will debate.
The fact is if you look at free will in a broad sense, and God knows everything from the beginning of time to the end, then any action you take is predetermined, God knows your action from now until you die.
Now you may believe that every action you take is a matter of choice, but let's set up an argument.
I have a choice: to either eat cheese sandwiches or ham sandwiches, ie I have at least two possible choices and two possible outcomes, and I chose ham, now God knew I would choose ham so the only possible outcome was ham, so in fact although I was convinced I had a choice there was only one possible outcome. Choice by it's nature means that we should have a range of outcomes, in the omniscient sense of this we don't.
This is only an illusion of free will, it is not a choice, in other words: the illusion of free will is so complete it might as well be true, but in fact might it? Or are we just in a cage of self delusion?
There are two arguments to argue this age old issue:- http://plato.stanford.edu/entries/compatibilism/" that try to resolve it either way.
There is no answer, what you can be sure of though that the paradox of God's omniscience and choice has been in existence since the latter half of the first millenium AD amongst theologians both Jewish and Muslim, and no one has come up with a satisfiable answer unless it removes the absolute omniscience ie it says God knows the ultimate future but is hazy on the details in between, so God is in some way not omniscient as we understand it, and as in fact it was understood in the OT. Why give the Earth one hundred years to change or perish in a flood, when God already knows you will fail, it's kind of cruel

it's like dangling a carrot on a string in front of a donkey.
This idea of a God who was not totally omniscient changed with the advent of organised religion and lead to an ever widening chasm the Church has dug itself into; now we can't get into a discussion about which church was right the ancient Jewish one or the new Christian one. But we can scratch our heads and claim that they have shot themselves in the foot these days.
