Re: two unique banners on one page
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13372
interpreted = N
texte = >I tried using two databases with random sorts and the problem I have is>that the could always generates the same pair of ads. Here is the code:Both databases have different ads in them? It's certainly possible to have similar pairs, but as the number of ads in the databases increases, the randomness increases. You're saying that a random sort between 2 completely different databases always returns the same pairings? Sounds like the random seed is being set in a non-random way.Try adding randseed=[random] to the search parameters of each search context. That may bump the random seed enough to get different pairings.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>I tried using two databases with random sorts and the problem I have is>that the could always generates the same pair of ads. Here is the code:Both databases have different ads in them? It's certainly possible to have similar pairs, but as the number of ads in the databases increases, the randomness increases. You're saying that a random sort between 2 completely different databases always returns the same pairings? Sounds like the random seed is being set in a non-random way.Try adding randseed=
[random] to the search parameters of each search context. That may bump the random seed enough to get different pairings.Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
Where's Cart Created ? (1997)
Multiple catalog databases and showcart (1997)
More on the email templates (1997)
[format] question (2000)
Is this possible, WebCat2.0 and checkboxes (1997)
[WebDNA] [OT] hello (2012)
WebCat2: Found Items syntax, etc. (1997)
SEARCH Peram (2003)
SendMail - sending message to more than one person (2006)
Cookie still not working (1999)
WebCat2: Formulas.db question (1997)
Wanted: Broader string manipulation functions (1997)
WARNING: MacOS The installer is broken... (2000)
[WebDNA] Authentication across domains (2009)
WebCatalog for guestbook ? (1997)
Linux file configuration (1999)
[SHOWIF] (1997)
Sorting Numbers (1997)
(1997)
Robert Minor duplicate mail (1997)