Assemblies randomly

Hello!
Could you please help me with the following task?
I need to feed stacks of 1 to 4 boxes from the feeder onto the conveyor. The number of boxes in each stack is determined randomly. Additionally, each box should be assigned one of two ProdIDs, for example, 111 and 222, preferably in a specific percentage ratio.