Raze is right. Any item that appears in your inventory is just like any that appears on the ground: random until examined. Any items that are upgraded are actually replaced. The old version is removed from your inventory and the new version added (still random).