The weapon slot for weapons can be randomized.
For eg. if you pick up a pistol, it will actually go to the weapons slot for automatic rifles (or any random slot) and replace the current weapon for that slot.
The randomized weapon slots should be decided at the start of the game itself.