There are a lot of questions about generating random numbers form both uni-variate and bi-variate distributions. Mathematica has a lot of built in distributions for that purpose. However, I could not do what I wanted to do. I am looking for help.
I want to generate random numbers using built in Mathematica distribution but would like to put some restriction. For example, the following code gives me 2000 random numbers form exponential distribution.
example1=RandomVariate[ExponentialDistribution[0.0067], 2000];
However, I am trying to get 2000 random variables greater than say 20 from exponential distribution. Similarly, the following code gives me 2000 random numbers a form Farlie-Gumbel-Morgenstern copula.
example2=RandomVariate[
CopulaDistribution[{"FGM", .34}, {NormalDistribution[0, 1],
ExponentialDistribution[0.0067]}], 2000];
However, I want to get 2000 random numbers form Normal distribution between -.02 and .02 or I want random numbers form exponential distribution between 40 and 1000.
Any help is greatly appreciated. Thank you in advance.
TruncatedDistribution
may be what you are after. $\endgroup$