I get the vibe that I'm not being clear enough. I'll try again.
-Working on the assumptions that god is omnipotent and omniscient
-He made us, exactly as we are.
-He did not roll d6 to determine our intelligence, he decided it himself
-he also knew exactly what would happen because of his making our intelligence precisely as it is
-he made everything else, too
-he knows precisely how everything in the universe works, and therefore the future
So, because god made everything, and knew precisely how he did it and how it would work, god decided EVERYTHING a long time ago. Us arguing on this forum at this time is a part of that decision, as are any instances of laughter, pain, friendship, hatred, pain, killing, hunger, nuclear explosions, anything. Actually, being omniscient and omnipotent makes god, by definition, utterly incapable of 'randomness'. He knows precisely what he will do and how he will do it, and it's not like he's able to mess up. And anything he did mess up, he did on purpose.
God decided EVERYTHING. Relative to earth and everything on it, we have free will because we can decide for ourselves and make any change we want. (despite that god decided what those decisions and changes would be a few decillion years ago, or more) Relative to god, we have no free will at all, because he decided what we would think about and decide a long, LONG time ago. Saying we have free will is a lot like picking up a ball, saying it has free will to decide where it goes, and throwing it. It doesn't have any free will at all.
If a person goes with a ham sandwich over turkey for lunch, and someone knew he would, does he still choose his own sandwich?
Yes, he chose his own sandwich. However, if the person was actually a robot designed to only eat ham sandwiches and not turkey ones, then no, the robot's programmer chose the ham sandwich.
I don't feel like I'm being 100% clear yet, so here's one last shot. If god is omniscient and omnipotent, then he decided everything that would happen on earth (or off of it) a long time ago. Unless you wish to assume he fucked up somewhere, which is just a
little bit contradictory to "omniscient and omnipotent".