Re: random within a specified range

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37453
interpreted = N
texte = [search db=mydb.db&wocategorydatarq=1,5,12,27,28,29&categoryword=ww&skusort=1&skusdir=ra&max=1&allhits=1]>Is there any way to randomly select from a specified set??? > >for aguements sake lets say i have 1000 items listed in a database. > >Each one of these items is associated with one or more categories - in >another table. > >I have, again for aguments sake - 30 catagories. > >Would it be possible to randomly select one item which is associated with >any of six of the categories. cat1, cat5, cat12, cat 27, cat28, cat29. > >Anybody have any idea's? > > > >------------------------------------------------------------- >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 > >Web Archive of this list is at: http://search.smithmicro.com/ -- ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: random within a specified range (Alisha Outridge 2001)
  2. Re: random within a specified range (Andrew Simpson 2001)
  3. Re: random within a specified range (Alisha Outridge 2001)
  4. Re: random within a specified range (Clayton Randall 2001)
  5. Re: random within a specified range (Alisha Outridge 2001)
  6. random within a specified range (Andrew Simpson 2001)
[search db=mydb.db&wocategorydatarq=1,5,12,27,28,29&categoryword=ww&skusort=1&skusdir=ra&max=1&allhits=1]>Is there any way to randomly select from a specified set??? > >for aguements sake lets say i have 1000 items listed in a database. > >Each one of these items is associated with one or more categories - in >another table. > >I have, again for aguments sake - 30 catagories. > >Would it be possible to randomly select one item which is associated with >any of six of the categories. cat1, cat5, cat12, cat 27, cat28, cat29. > >Anybody have any idea's? > > > >------------------------------------------------------------- >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 > >Web Archive of this list is at: http://search.smithmicro.com/ -- ------------------------------------------------------------- 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 Web Archive of this list is at: http://search.smithmicro.com/ Clayton Randall

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:

db not being written to disk (2003) [WebDNA] small bug when searching tables in functions (2011) Multiple Passwords (1997) Version f1 status (1997) Locking up with WebCatalog... (1997) send mail problem? (1997) Re:no template caching (1997) [ListFiles] & [loop] (1998) MacAuthorize hub, no modal password dialog? (1997) WebCat B13 Mac CGI -- Frames question (1997) &max= (2003) The IBC root beer has arrived! (1997) WebCat2b12--[searchstring] bug (1997) Accepting credit cards (1997) Loss in form (1998) [REPLACE] inside [FOUNDITEMS] (1998) Cold Fusion Buster (1997) Online reference (1997) RED QUESTION MARKS AGAIN (1999) Printing controls - form feeds (2002)