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:
ConvertChars (1998)
Displaying raw values (1998)
Showing unopened cart (1997)
Can't load tmpl files (1997)
WebCatalog2 Feature Feedback (1996)
Authenticate (1997)
PCS Customer submissions ? (1997)
Multiple catalog databases and showcart (1997)
Problems w/ heavy use of cart header fields? (1998)
WebDNA and WebSTAR Error pages II (2004)
emailer (1997)
Weird Math and SV (1997)
Reversed words (1997)
WebTen? (1997)
AOL (1999)
[subtotal] and others (1997)
Duplicate Cart Problem in Netscape (2000)
[replaceChars] would be nice ... (1997)
Date Calulation (1997)
Passing Variable (was How to add product size) (1997)