From: Damjan Rems Date: 2012-11-26T23:23:07+09:00 Subject: Algorithm for choosing object based on priority Since I am not computer graduate (electro engineer as mater of fact) I haven't studied lots of computer algorithms. And since english is not my first language I also find it difficult to search google. What I would like to accomplish is create an algorithm for showing ads based on priority (or number of times to display). Priority would define no. of times ad would be displayed. Example: We have 3 ads to display. If our web page is hit 6 times ads should be displayed: add1 1 time add2 5 times add3 10 times ... and theoretically addn 10 times Please direct me to a solution. by TheR -- Posted via http://www.ruby-forum.com/.