Problem with section "Pseudo-Random Traversal of a Set" (ch. 3)