In some codes I encountered some
\z command, for example:
from this question: Generating random numbers without repetitions. What exactly does it mean?
It's nothing more than a standard macro. Instead of
\z you could have used
\xxxyyy or any other valid macro name.
simply selects an item from the
mylist list and stores it in the macro
shows the item stored in
\z and removes it from the list.