I'm making an as3 program, and in it, when a button (instance name "buy") is clicked, 5 names are randomly picked from a list of about 120 names.
Bob George Tom Mohammed Adam Moses Aaron David
From these 8 names, it would for example randomly pick 3 names.
I also need to make it so that some names are picked more frequently than others, like; Mohammed will be picked 50% of the time, David 20% of the time, Bob 2% of the time...
What I want to know is; how do I do this? I'm pretty new to AS3, and I only know how to do simple things so far.
Thank you in advance :)