How to get a random number with 'weight'?

BlitzMax Forums/BlitzMax Programming/How to get a random number with 'weight'?

I did the array method for my Bonus games to determine which bonuses can appear.