Re: Generating a random image, but avoiding repeated images.
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 25285
interpreted = N
texte = You could choose a random starting point and then just add 1 to the number each time withthe database wrapping around if say the last one was 100.jpg back to 1.jpgChristopher Feyrer wrote:> We have a database of several hundred images from which I would like to> pull a random image. This is pretty easily accomplished using the Search> feature and its random function.>> My question is this: How can I make sure that each image gets displayed at> least once, and that there aren't repeating images?>> My first solution is to implement a secondary database which records the> number of the image, say 3 of 200, and if 3 of 200 was previously> displayed, it would automatically do another random search until it found> an unused number graphic.>> Does this make sense? Is there a shortcut in webcatalog so I can have the> search be sure to generate non-repeating random results?>> Thanks for any assistance.>> Christopher Feyrer> System Administrator> FoodSpot.com> chris@foodspot.com> -------------------> PGP 6.x key available.>> -------------------------------------------------------------> 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 --Conrad Hubbard - White WolfComputer Projects Assistanthttp://www.white-wolf.comThe Howl heard 'round the World-------------------------------------------------------------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:
You could choose a random starting point and then just add 1 to the number each time withthe database wrapping around if say the last one was 100.jpg back to 1.jpgChristopher Feyrer wrote:> We have a database of several hundred images from which I would like to> pull a random image. This is pretty easily accomplished using the Search> feature and its random function.>> My question is this: How can I make sure that each image gets displayed at> least once, and that there aren't repeating images?>> My first solution is to implement a secondary database which records the> number of the image, say 3 of 200, and if 3 of 200 was previously> displayed, it would automatically do another random search until it found> an unused number graphic.>> Does this make sense? Is there a shortcut in webcatalog so I can have the> search be sure to generate non-repeating random results?>> Thanks for any assistance.>> Christopher Feyrer> System Administrator> FoodSpot.com> chris@foodspot.com> -------------------> PGP 6.x key available.>> -------------------------------------------------------------> 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 --Conrad Hubbard - White WolfComputer Projects Assistanthttp://www.white-wolf.comThe Howl heard 'round the World-------------------------------------------------------------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
Conrad Hubbard
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:
Strange intermittent WebDNA problems Workaround (2008)
Request for improvement... (2002)
Expert tech support ... (2000)
[WebDNA] Instructions for install on CentOS 5.7? (2011)
Problems with shopping cart (1997)
Practice runs ? (1997)
SmithMicro Help! -- Can't access WebCatalog Admin! (2001)
List Last Word (2002)
WriteFile is there a max size? (1998)
can you take a look #2 try (2003)
AOL (1999)
Re[2]: Re[2]: Bugs still *not* fixed as promised ... (2000)
Database Program (1997)
Spawning Holdup? (2000)
ListFields and [name] (1997)
[WebDNA] Basic Search (2008)
Email (1998)
how to check for no value while using [URL] to prevent cr (1999)
formula part 3 (2000)
why is this line in GeneralStore? (1998)