Peter, Agreed... which is why I said the 'random' module should be imported if more randomness is required.
I only mentioned d.popitem() first in case Tores' application didn't need a psuedo-random item and instead he was looking to pull any value without randomness. -- http://mail.python.org/mailman/listinfo/python-list