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:
form data submission gets truncated (1997)
Bug: MySQL WebDNA 6 int bigint fail case (2004)
CommandSecurity? (1997)
LetterRip and WebCat (1998)
WebCatalog NT beta 18 now available (1997)
WebCat Error Log problem (2.0.1, acgi, Mac) (1997)
Text data with spaces in them... (1997)
4.0 upgrade pricing (2000)
[WebDNA] =?windows-1252?Q?Re=3A_=5BWebDNA=5D_=5BWebDNA=5D_=5Bthisurlplusg?= (2013)
[ShowIf] and empty fields (1997)
sandboxes with 6.0 (2004)
log out (2001)
Forbidden CGI Error (1997)
Help! WebCat2 bug (1997)
Price recalc based on quantity (1997)
Special delete ... (1997)
[Fwd: Rotating Banners ... (was LinkExchange)] (1997)
Sort Order on a page search (1997)
PCS Frames (1997)
retail integration (2000)