Re: Random Generator

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 62103
interpreted = N
texte = Nevermind. I see the ra for random. Thanks. Regards, Ki Song ---------- Knifecenter, Inc. 5111 Berwyn Road STE 110 College Park, MD 20740 (301) 486-0901 ki@knifecenter.com > From: Ki Il Song > Reply-To: "WebDNA Talk" > Date: Thu, 02 Jun 2005 15:22:51 -0400 > To: "WebDNA Talk" > Subject: Re: Random Generator > > The only problem with that code, I think, is that it wouldn't really be a > randomly generated list. It would always return the same listings (depending > on the category selected), sorted by the SKU. > > Am I right? > > Regards, > Ki Song > > ---------- > Knifecenter, Inc. > 5111 Berwyn Road STE 110 > College Park, MD 20740 > (301) 486-0901 > ki@knifecenter.com > >> From: Clint Davis >> Reply-To: "WebDNA Talk" >> Date: Thu, 02 Jun 2005 14:20:51 -0500 >> To: "WebDNA Talk" >> Subject: Re: Random Generator >> >> Assuming that you have a CATEGORY field and a SKU field, try this: >> >> [search db=your.db&eqCATEGORYdatarq=yourcategory&raSKUsort=1] >> >> >> On 6/2/05 1:55 PM, "Ki Il Song" wrote: >> >>> Is there an easy way to display random products? >>> >>> Our company, Knifecenter.com would like to display random types of knives >>> within a certain category. I know how to list a certain category, using >>> different fieldsin our database of products (ie WWWCat_1), but I don't know >>> how to randomly generate a list of products within that category. >>> >>> Is there an easy call for random numbers in WebDNA? >> >> >> >> >> ------------------------------------------------------------- >> 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://webdna.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://webdna.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://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Random Generator ( Ki Il Song 2005)
  2. Re: Random Generator ( Ki Il Song 2005)
  3. Re: Random Generator ( Clint Davis 2005)
  4. Random Generator ( Ki Il Song 2005)
Nevermind. I see the ra for random. Thanks. Regards, Ki Song ---------- Knifecenter, Inc. 5111 Berwyn Road STE 110 College Park, MD 20740 (301) 486-0901 ki@knifecenter.com > From: Ki Il Song > Reply-To: "WebDNA Talk" > Date: Thu, 02 Jun 2005 15:22:51 -0400 > To: "WebDNA Talk" > Subject: Re: Random Generator > > The only problem with that code, I think, is that it wouldn't really be a > randomly generated list. It would always return the same listings (depending > on the category selected), sorted by the SKU. > > Am I right? > > Regards, > Ki Song > > ---------- > Knifecenter, Inc. > 5111 Berwyn Road STE 110 > College Park, MD 20740 > (301) 486-0901 > ki@knifecenter.com > >> From: Clint Davis >> Reply-To: "WebDNA Talk" >> Date: Thu, 02 Jun 2005 14:20:51 -0500 >> To: "WebDNA Talk" >> Subject: Re: Random Generator >> >> Assuming that you have a CATEGORY field and a SKU field, try this: >> >> [search db=your.db&eqCATEGORYdatarq=yourcategory&raSKUsort=1] >> >> >> On 6/2/05 1:55 PM, "Ki Il Song" wrote: >> >>> Is there an easy way to display random products? >>> >>> Our company, Knifecenter.com would like to display random types of knives >>> within a certain category. I know how to list a certain category, using >>> different fieldsin our database of products (ie WWWCat_1), but I don't know >>> how to randomly generate a list of products within that category. >>> >>> Is there an easy call for random numbers in WebDNA? >> >> >> >> >> ------------------------------------------------------------- >> 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://webdna.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://webdna.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://webdna.smithmicro.com/ Ki Il Song

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:

Group search doesn't work. (1997) Can you do this??? and other stuff (1997) WebMerchant Error (1998) SV: Mass Mail (2000) Ampersands in database fields? (1998) normal users.db calls ... (1998) Max Record length restated as maybe bug (1997) 2.1.1 bug (ORDERFILE/SHOWIF/LINEITEMS) (1998) [ot] ascii values for lf and cr (2001) Execute Applescript (1997) docs for WebCatalog2 (1997) Cart date/time (2006) NT Setup (1998) [append] vs. [appendfile] delta + question? (1997) [cart] tag (2000) What am I missing (1997) Thanks for tips, more quest (1997) Weird Math and SV (1997) Custom WebCat Prefs ... (1997) Exchange rates (2004)