question

Wissem A avatar image
0 Likes"
Wissem A asked Ben Wilson edited

A random process time on a min and max interval

je veux mettre un temps de processus qui varie aléatoirement entre deux valeurs minimale et maximale.je veux savoir si c'est possible sur FlexSim

Choose One
process timedistributionsprobability
5 |100000

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

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Jeff Nordgren commented
@Wissem A

What exactly is your question?

To get the minimum of two numbers you would enter: Math.min(double value1, double value2);

And to get the maximum of two numbers you would enter: Math.max(double value1, double value2);

Where value1 and value2 are numeric double values.

· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·

@Wissem A,

Or if you are looking for the min/max of two generated random numbers, you could use the uniform distribution, as @Allister Wilson suggested, by entering code like:

Math.min(uniform(1,10), uniform(1,20));

Math.max(uniform(1,10), uniform(2,15));

Is that what you are after?

0 Likes 0 ·
Allister Wilson avatar image
1 Like"
Allister Wilson answered Allister Wilson edited

Since there is no question here, I'll just guess you're looking for the uniform distribution : https://answers.flexsim.com/articles/19547/uniform-distributions-5.html

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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