Set Item Type

Set Item Type

joey_s
Not applicable
8 Views
2 Replies
Message 1 of 3

Set Item Type

joey_s
Not applicable

[ FlexSim 19.0.4 ]

Hello everyone. I have something to know. I want to create a list of type 1 and type 4 in the same "source" I tried to create with the "Set Item Type" method, but it looks like it creates type 1, type 2, type 3, type 4. Come out, but what I want is just type 1 and type 4. How should I solve this problem?

Thank you for your help in advance.

0 Likes
Accepted solutions (1)
9 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

Instead of creating the types by a duniform distribution directly you do it indirectly over an array:

Array typesToChooseFrom = [1,4];
item.Type = typesToChooseFrom[duniform(1,2)];
0 Likes
Message 3 of 3

joerg_vogel_HsH
Mentor
Mentor

you choose the pick list option "Set Item Type by Percentage" from Data in OnCreation trigger.

21146-non-ordered-random-types.jpg

0 Likes