How do i set the 15% to be assigned first?
How do i set the 15% to be assigned first?
I'm not sure I understand what you're asking. It's only going to assign one of those two values. There's a 15% chance it assigns the value "Seed" and an 85% chance it assigns the value "Serial".
Then the By Percentage pickoption isn't going to be useful to you. The question is 15% of what?
The simplest way is probably to set this up in an arrivals table. Like if you have 100 items arriving make 2 entries. One with 15 items that get the Seed label and another with 85 items that get the Serial label.
Alternatively you could write a code snippet that keeps track of how many items have arrived and if the number goes above your 15% number then you switch. Something like:
string labelValue = "Seed"; if (current.NumArrivals > 15) labelValue = "Serial"; item.Type = labelValue; current.NumArrivals++;
I've attached a sample model with these two approaches.
11 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved