MATLAB: How to generate random numbers between min and max value with gevrnd?I

datadistributiongeneralized extreme valuerandom number generator

I have 16 value with distributed by generalized extreme value. I have k, sigma and mu of this data. I want to increase the data with this distribution between 20 and 21. How can I do it, may I get your help with code sharing?
Thanks

Best Answer

truncate() the distribution. That will automatically re-scale the pdf so that the probability integral over the given range becomes 1.