Each prisoner opens the drawer with his own number on it, then the drawer numbered with whatever he finds, and so on round the loop. They all succeed unless the shuffle holds a loop longer than 50, and that happens only about 69 per cent of the time.

Open drawers at random and the chance is a half to the power of 100, which is as near nothing as makes no difference.