I'm seeming to have trouble understanding the way refill box takes parameters and the way that RANDOM_BETWEEN works on items

As far as I'm aware this line should add 0-2 rifles and 3-7 mags

["wep", "CUP_arifle_AK101", RANDOM_BETWEEN(0,2), RANDOM_BETWEEN(3,7)]

Will using this line spawn 0-2 rifles and 0 mags?

["wep", "CUP_arifle_AK101", RANDOM_BETWEEN(0,2)]

I assume I am understanding this part correctly so far

This is where I'm having trouble understanding the way to use RANDOM_BETWEEN

["itm", [

["V_PlateCarrier1_rgr", "V_PlateCarrier1_blk", "V_PlateCarrierIA1_dgtl"], // Lite

["V_PlateCarrier2_rgr", "V_PlateCarrier2_blk", "V_PlateCarrierIA2_dgtl"], // Rig

["V_PlateCarrierSpec_rgr", "V_PlateCarrierSpec_blk", "V_PlateCarrierSpec_mtp"], // Special

["V_PlateCarrierGL_rgr", "V_PlateCarrierGL_blk", "V_PlateCarrierGL_mtp", "V_PlateCarrierIAGL_dgtl", "V_PlateCarrierIAGL_oli"] // GL

], RANDOM_BETWEEN(1,4)]

I don't understand how the array gets chosen, does it choose between 1-4 arrays of items at random and then spawn that many? Does it choose 1 array at random and then choose between 1-4 items at random from that array? Does it choose a random between all the arrays to spawn between 1-4 of? I can't seem to understand the way this works, I've tried testing multiple times but due to it being random I can't be certain how it works exactly, thanks for any help