http://qs1969.pair.com?node_id=686508


in reply to Deterministic or keys in random order

It isn't random id that sense of word.

Any given instance of a hash variable has an intrinsic order which is mantained until the hash is modified. So if you repeatedly check the first result of keys on the same hash you'll find always the same key

The order of the keys is "random" in the sense that it is not (easily) predictable; if you add a new key to the hash it could be in any position.

Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.