The general assumption was:

The numbers of 100 prisoners are randomly
distributed in 100 drawers (one number per drawer).


If the numbers have not been randomly distributed in the drawers,
one nevertheless gets a random permutation by
choosing a random numbering of the drawers (in step 1).