Skip to content

Uniform Distribution

The uniform distribution returns any value in a range with equal likelihood, with no value more probable than another. It is a flat range, useful when you know the limits but have no reason to favour any point in between.

Write U(min, max), or Uniform(min, max):

U(3, 8)

returns a value spread evenly between 3 and 8. Reach for it for a rough range when you have no information about the shape inside it. For whole numbers only, use the discrete form DiscreteUniform(min, max).

LegacyHow this worked in the previous version

The Uniform distribution is a continuous distribution bounded on both sides. Its density does not depend on the value of x. It is a special case of the Beta distribution. It is frequently called rectangular distribution. Most random number generators provide samples from the Uniform distribution on (0,1) and then convert these samples to random variates from other distributions.

The Uniform distribution is used to represent a random variable with constant likelihood of being in any small interval between min and max. Note that the probability of either the min or max value is 0; the endpoints do NOT occur.

Zih4KSA9IDEgLyBtYXgg4oCTIG1pbgoKbWluID0gbWluaW11bSB4Cm1heCA9IG1heGltdW0geA==

The uniform distribution is usually used when you want your results to range between two numbers.

ProcessModel uses the following formula for uniform distribution in its simulation engine:

VSg8bWVhbj4sPGhhbGYgcmFuZ2U+KQ==

Example:

You have a time range of 10-15 minutes and you want the ProcessModel simulation engine to choose a time within that time range, the formula for uniform distribution to use over here will be:

VSgxMi41LDIuNSkKTWVhbjogKDEwICsgMTUpIC8gMiA9IDEyLjUKSGFsZiBSYW5nZSAodGhlIG1heGltdW0gdXAgb3IgZG93biBhIHZhbHVlIGNhbiBnbyBmcm9tIG1lYW4pOiAoVXA6IDEyLjUgKyAyLjUgPSAxNSDigJQgRG93bjogMTIuNSDigJMgMi41ID0gMTApID0gMi41