Example, called via a script:
An array is created (A2 classnames, problem remains the same:)
_Weap1 = ["ACE_RPK","ACE_AK74M","ACE_AKMS","M9"... and so on];
Now the script should select a random weapon out of the array and take a randomized amount...
_crate addWeaponCargoGlobal [_Weap1 select random 9, random 2];
The players won't have weapons inside the crate.