Page 1 of 1

A random with ratio?

Posted: Fri May 30, 2008 12:26 pm
by Phoenixheart
Hello,

I'm developing an ad-rotator system, in which the user has 4 levels of ads:
- Bronze: displaying ratio is 5%
- Silver: 25%
- Gold: 50%
- Platinum: 75%

So, a "gold" ad will have a better chance to be displayed than that of "silver" ones, and so on.
I'm not very good at mechanism, so would highly appreciate if someone could give me a hint on how to do it :)
Thanks in advance!

Re: A random with ratio?

Posted: Fri May 30, 2008 3:10 pm
by VladSun
There was a big topic regarding this issue:
viewtopic.php?f=2&t=76771&hilit=weight+random