@X-ray:
Unfortunately, I cannot answer your question where it came from. Noone can, because that is what quantum foam means. We cannot hope to develop techniques to peer 'inside' the stuff, Nature won't allow it. Even Nature itself cannot peak inside it. This is completely against common sense, because you'd expect something 'in there'. Well, whatever there is, all we can say is that it obeys a few simple inequalities dealing with momentum, space, time, and energy, but that is truly all. Quantum foam is randomness in its more pure and ultimate form. Where does randomness come from? Noone knows.
Some people have objected very vocally against this sort of description, often to the point of creating a lot of physics which at its core is still nicely predictable, but outwardly resembles the unpredictability of quantum things to the letter. That is introducing needless complexity.
I am very much afraid that your quest stops here. I know, it ties your brain in knots. I try not to think about it very hard, simply because I know I lack the mathematical skills to properly describe things, and thus have to make do with simplistic views which are probably loaded with paradoxes, illogical arguments, and what-not. And now it's off to bed with me, my head is starting to hurt :-).