Re: Random sort is not random at all.....
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 27227
interpreted = N
texte = > I built a banner system that gets about 10k hits a day and 25% of the> customers only get their banner shown at a rate of 10% of all the others. . .I> hate this.> > It's always the same ones that get cheated.> > Random doesn't work very well.You can also do it sequentially.First pick those with the least shows, and then do a random among them.On the first run, everybody will have zero shows, and the random will pickone, who shows value will then be set to one.On the second run, the preceding happy advertiser will not be picked,because of his shows value that is superior to the rest.You can look for the smalled number of shows:[search db=Banners.db&geShowsdata=0&Showstype=num&deShowssort=1&max=1][founditems]SmallerShowsNumber=[Shows][/founditems][/search][search db=Banners.db&eqShowsdatarq=[SmallerShowsNumber] etc...-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to
.This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
> I built a banner system that gets about 10k hits a day and 25% of the> customers only get their banner shown at a rate of 10% of all the others. . .I> hate this.> > It's always the same ones that get cheated.> > Random doesn't work very well.You can also do it sequentially.First pick those with the least shows, and then do a random among them.On the first run, everybody will have zero shows, and the random will pickone, who shows value will then be set to one.On the second run, the preceding happy advertiser will not be picked,because of his shows value that is superior to the rest.You can look for the smalled number of shows:[search db=Banners.db&geShowsdata=0&Showstype=num&deShowssort=1&max=1][founditems]SmallerShowsNumber=[Shows][/founditems][/search][search db=Banners.db&eqShowsdatarq=[SmallerShowsNumber] etc...-------------------------------------------------------------Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server.To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Nicolas Verhaeghe
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
search results (1998)
Re:Emailer and encryption (1997)
SQL Changes in 3.0.7? (2000)
IE-caching (1998)
SQL Madness (2005)
New user...saying thanks, and whaddayathink? (2000)
OT: Prevent Caching js Files (2003)
RE: [WebDNA] [test] last one, sorry...:p (2009)
WebDNA-generated email headers (2003)
More on the email templates (1997)
Error: Missing c in orderfile???? (2005)
Showif Context combined with Search (1997)
Re:Has this happened to you? (was:Emailer Chokes on bad address) (1997)
.hdr files (2004)
Solution: searchin more then one (1999)
Couple of questions (1999)
searching multiple databases (1997)
frames & carts (1997)
Running _every_ page through WebCat-error.html (1997)
[WebDNA] WebDNA DE purchase (2008)