Generating a random image, but avoiding repeated images.

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25284
interpreted = N
texte = 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 Associated Messages, from the most recent to the oldest:

    
  1. Re: Generating a random image, but avoiding repeated images. (jpeacock@univpress.com 1999)
  2. Re: Generating a random image, but avoiding repeated images. (Conrad Hubbard 1999)
  3. Generating a random image, but avoiding repeated images. (Christopher Feyrer 1999)
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 Christopher Feyrer

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:

Terry's formvariables tip (1998) urls (2005) filemaker - orderfile (1997) WebCat & WebTen (1997) Convertchars Problem (2004) Intranet Tempaltes? (2004) WC2.0 Memory Requirements (1997) Forms Search Questions (1997) Math with Time (1997) Ken's Data Manager (finally available I think ...) (2005) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) Browser frames and URLs in the Location field (2004) WC Database Format (1997) Rhapsody? (1997) Searhing for logic (1999) WebCatalog Eating 200% of the CPU (2002) Links and urls (2005) Contexts and Ampersands (1997) WebCat2 - [include] tags (1997) WebCatalog/WebMerchant Manuals Available (1998)