Microsoft Excel - Excel VBA for generating Random numbers following a discrete probability function

Asked By Jean-Pierre on 17-Dec-17 09:10 PM
I am looking for the Excel VBA commands to generate a random number following a discrete probability function, to reproduce what you can get under the "Data Analysis" add-in option in excel.
Thanks for your help.