in reply to Random Value Generation in an Hash
See Tie::IxHash for one way to preserve the order in which keys have been added to a hash.