Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 4

Uniform Distributions Outside of 0-1

Continuous Uniform Distribution between a and b


a + (b-a)*RAND()

Discrete Uniform Distribution between a and b


RANDBETWEEN(a, b) or, INT(a + (b-a+1)*RAND())

Uniform Distributions Outside of 0-1


To get a random number between 0 and 15: 0 + (15-0)RAND()

To get random integer values between 60 and 75 RANDBETWEEN(60,75) Or, INT(60 + (75-60+1)*RAND())

Other Useful Distributions


Normal Distribution
3 2.5 2 1.5 1 0.5 0 0 0.2 0.4 0.6 0.8 1 1.2

Normal
- One of the most commonly used distributions

Exponential
2.5 2 1.5 1 0.5 0 0 0.2 0.4 0.6 0.8 1 1.2

Exponential
- useful for arrival times, and mechanical failure times

Random Numbers from Other Distributions


From a normal distribution:
NORMINV(RAND(), mean, std dev)

From an exponential distribution:


(-1)(mean) LN(RAND())

(Recall: HS math, if y = ex, then x = Ln y)

You might also like