question

Amanda Prado avatar image
0 Likes"
Amanda Prado asked Amanda Prado commented

How create random numbers?

Hello,


Could someone help me with a question? My situation is as follows:


I need my source to create 5000 products in a given period of time. There are 8 product models in total that arrive randomly, and it is not possible to determine the probabilities of arrival at this time. The products arrive randomly and not uniformly. It is really unpredictable.


Only one of the models arrives with a minimum quantity of 2000 units, the other 7 models are unpredictable.


With the DUNIFORM distribution it is not possible to do this, and also with the empirical distribution, because I do not know the probabilities.


Is there any way to do it via script?


Thank you very much!

FlexSim 24.2.1
flexscriptdistributionsrandom
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Amanda Prado commented

Generating a random number without an underlying distribution is not possible. If such a distribution is not known, I guess a decent approach would be to test the model against different distributions (empirical or otherwise) that seem 'reasonable' to make sure the system can handle many different situations.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Amanda Prado avatar image Amanda Prado commented ·

Thanks for your explanation.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Amanda Prado commented

You can do it with two datetime sources in process flow. One creates in a time interval 2000 items randomly distributed items. These items get a unique identifier. A second datetime source creates 3000 items and assigns randomly identifiers for example by a duniform distribution.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Amanda Prado avatar image Amanda Prado commented ·

Joerg Vogel, could you give me an example how can I do that ?

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Amanda Prado commented ·
0 Likes 0 ·
Amanda Prado avatar image Amanda Prado Joerg Vogel commented ·
Thank you very much !
0 Likes 0 ·