Items have a rarity tag. The rarer the items, the lesser chance it will appear.


That being said, the more you buy from a particular shop, the higher the chance of rare items appearing.