from Generation of random number given the pmf by Furlan
n=rand_gen(x,pmf,N) Generates a random signal n oh length N from a desird pmf.

All files for Generation of random number given the pmf
/license.txt
/rand_gen.m

Contact us at files@mathworks.com