Clever proof.
SOLUTION: You might very reasonably worry that one urn will "take over" and leave very little for the other. In my experience, faced with this problem, most people are unwilling to offer $100 in advance for the contents of the lesser urn.
In fact, the lesser urn is worth, on average, a quarter of a million dollars. (Of course, that doesn't mean you are willing to take this much risk!) This is because the final contents of (say) Urn A is precisely equally likely to be any whole number of dollars from $1 all the way to $999,999. Thus, the average amount in the lesser urn is about $250,000.
How can we see this? There are several proofs, but here's my favorite. Imagine that we shuffle a fresh-from-the-box deck of cards in the following careful manner. We place the first card, say the Ace of Spades, face down on the table. Then we take the second card, maybe the Deuce of Spades, and randomly place it over or under the ace. Now there are three possible slots for the Three of Spades; choose one at random, putting it on top of the current pile, under the current pile, or between the ace and deuce, each with probability 1/3.
We continue in this manner; the nth card is inserted in one of n possible slots, each with probability 1/n. The result eventually is a perfectly random permutation of the cards.
Now think of the cards that go in above the Ace of Spades as the coins (not counting the first) that go into Urn A, and the ones that go under as coins going into Urn B. The magnetic rule above describes the process perfectly, because if there are currently x−1 cards above the Ace of Spades (thus x slots) and y−1 cards under the Ace of Spades (thus y slots), the probability that the next card goes above the Ace of Spades is x/(x+y).
Since, in the final shuffled deck, the Ace of Spades is equally likely to be in any position, the number of slots ending up above it is equally likely to be anything from 1 to the number of cards in our deck, which for our puzzle is 999,999.
[Probabilists call the mechanism of this puzzle the Polya urn, after the late George Polya, a Hungarian-born professor at Stanford who famously wrote about problem-solving in mathematics.]