Yes, they're completely random. The quest drops five boxes, each tied to a special class designed to be reviewed first, and they disappear once one is taken or a minute passes. You'll usually get pills, sometimes armor, and rarely weapons—those weapons carry King Pepe's name and can only be upgraded with Pepe scrolls.