addRandomItem improvement