Re: SOLUTION.... Re: Balancing randomness
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 27976
interpreted = N
texte = On 2/23/00 3:36 pm, Kenneth Grome so noted...>>On 2/23/00 1:58 pm, Joseph D'Andrea so noted...>>>>>Doh...>>>>>>Rob... the item that is missing from your implementation of my scheme>>>is rwTYPE=num in the [search] context. That's why your numbers get>>>stuck once the weight gets to 100.>>>>Ahhh... well, *that* wasn't in the original post! ; )>>>>That fixes the strange results, but I get the numbers 4 2 5 3 1 in the>>same repeating sequence for the entirety of the loop (and I wonder why>>WebCat is selecting them in that particular order consistently?)>>Use &rank=off to prevent webcat from ranking the search results. Just >sorting the results does not turn ranking off, it only tells webcat to >sort the ranked results into groups based on your sort parameters.When I turn ranking off with &rank=off (ie, get the results in the same order they appear in the database) I get 1000 instances of 1.I've gone ahead and used the shuffle sort method to present the five items in random (enough) fashion with equal distribution -- the client's happy, I'm happy : )Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------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:
On 2/23/00 3:36 pm, Kenneth Grome so noted...>>On 2/23/00 1:58 pm, Joseph D'Andrea so noted...>>>>>Doh...>>>>>>Rob... the item that is missing from your implementation of my scheme>>>is rwTYPE=num in the [search] context. That's why your numbers get>>>stuck once the weight gets to 100.>>>>Ahhh... well, *that* wasn't in the original post! ; )>>>>That fixes the strange results, but I get the numbers 4 2 5 3 1 in the>>same repeating sequence for the entirety of the loop (and I wonder why>>WebCat is selecting them in that particular order consistently?)>>Use &rank=off to prevent webcat from ranking the search results. Just >sorting the results does not turn ranking off, it only tells webcat to >sort the ranked results into groups based on your sort parameters.When I turn ranking off with &rank=off (ie, get the results in the same order they appear in the database) I get 1000 instances of 1.I've gone ahead and used the shuffle sort method to present the five items in random (enough) fashion with equal distribution -- the client's happy, I'm happy : )Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com-------------------------------------------------------------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
Rob Marquardt
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:
Re(8): Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998)
[WriteFile] problems (1997)
Navigator 4.01 (1997)
I'm new be kind (1997)
Order not created error (never mind) (1997)
WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997)
A Global Variable (1997)
Setting up shop (1997)
setitems, one more thing (1997)
Folder Follies (1998)
Sales Tax Rates 10/01/01 (2001)
Generic HDR file (2000)
template not found error (1998)
Add a Blog to your site. (2002)
Sendmail & Time Issue (2001)
[format 40s]text[/format] doesn't work (1997)
cookies (2001)
webcat/webmerchant docs (1997)
Digest for 4/18/97 (1997)
all records returned. (1997)