I remember doing something similar in Diablo 2 at the gambling vendor. I would save, gamble on an item, if it was junk I would just reload.