View Full Version : What method I have to use?


grl
11-12-2009, 03:38 PM
Write a MATLAB function that will take any probability mass function (ie. a vector of probabilities) and return the desired number of random variables generated according to that probability function.

What method I should use?