Each time you come back from the Labyrinth, Fred will be selling different stock. But if he's selling something you want multiple of without randomness, you can buy it, go in the old well at the north east of town, and when you exit it, Fred will have a full stock of the same items he was selling. Useful for Books of Attack/Defense, Phoenix Amulet, and Moof Tickets.