Hi,
I have updated the combiner target quantity by distribution. Attached the model for your reference.
Combiner OnEntry Trigger:
Object current = ownerobject(c); Object item = param(1); int port = param(2); double dblCombineQty= duniform(2,5); if (port == 1) { Table thelist = getvarnode(current, "componentlist"); treenode thesum = getvarnode(current, "targetcomponentsum"); thesum.value = 0; for(int index = 1; index <= thelist.numRows; index++) { thelist[index][1] =dblCombineQty; inc(thesum,dblCombineQty); } }
Thanks
Standard approach: you add a global table for different recipes, which you control by the Type of the item entering the combiner through the input port 1. You choose the value of the Type label for this item by a discrete statistical distribution before it enters the combiner