MATLAB Answers

Exponential Distribution for random number

16 views (last 30 days)
Hi, How can i generate an exponential distributed random integer from the interval [1 16]. Thank you so much.

  0 Comments

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 7 Nov 2015
I need a bit of clarification. Are the means on the interval [1 16], do you want the output to be on the interval 1 16, or a row vector of 16 exponentially distributed random variables? You have to specify a mean (or an array of means) in the second and third instances. (You can do any of these easily enough, but the output are no longer strictly exponentially distributed in the second instance.)

  6 Comments

Show 3 older comments
Star Strider
Star Strider on 7 Nov 2015
Your non-uniform random variate question turned out to be much more involved than I can answer here, and even Wikipedia avoids it. The short answer appears to be that it is any distribution that is not uniform, not a specific distribution named ‘non-uniform’.
I did an online search to be certain. A comprehensive discussion is at NON-UNIFORM RANDOM VARIATE GENERATION. (Other discussions I found online are as involved.) The same author has published a book on the subject.
Aftab Ahmed Khan
Aftab Ahmed Khan on 7 Nov 2015
Hi, Thank you for it. Take care & good nite.

Sign in to comment.

More Answers (0)