Fixing CreateRandomLoot function