I need to generate a vector of random numbers (say 100 numbers) between 0 and 1 which follow a particular trend.Suppose I have a histogram (not data, just the picture) more or less like the one below. Now, the random numbers that I need must have a frequency distribution similar to that shown by this histogram… That is I need more of the numbers to fall between .9 and 1. And I need this to work for any given frequency distribution.. Is it possible? I am very, very new to MATLAB.
MATLAB: How to generate random numbers which follow an arbitrary frequency distribution
frequency distributionhistogramrandom number generatorstatistics
Best Answer