Re: [random] only for 1-100???

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13275
interpreted = N
texte = At 01:48 PM 9/2/97 -1000, you wrote: >>>>Is there anyway to specify the range of numbers [random] uses, rather than >>>>the default 1-100? > >>>Use some math on the random number before you use the resulting >>>number for your particular needs ... :) > >>Sure, sure. However, I was hoping just maybe I wouldn't have to massage >>my data every time I need a random value other then between 1-100. Geez, >>even Basic 2.0 on my old Commodore 64 had an RND function... > >All it takes is writing the WebDNA once, and then you have a solution >you can re-use forever with minimal changes to accommodate your >specific needs ... provided you write it right the first time. > >Sincerely, Ken Grome >WebDNA Solutions >http://www.hui.net/dna/webdna.html >Maybe you can give me a few hints? I'm not sure where to start in order to make a proper random number generation routine which would be repurposable. I'd need something that would handle everything from easy stuff like 1-10 to things like 16-536. I think this would be handy code to have. ..................................................................... W O R L D P O I N T I N T E R A C T I V E DANIEL CAMERON web engineer Honolulu San Francisco 2800 woodlawn drive 222 sutter street dcameron@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3932 fax.808.539.3943 page.808.598.8640 ..................................................................... Associated Messages, from the most recent to the oldest:

    
  1. Re: [random] only for 1-100??? (Kenneth Grome 1997)
  2. Re: [random] only for 1-100??? (Kenneth Grome 1997)
  3. Re: [random] only for 1-100??? (Kenneth Grome 1997)
  4. Re: [random] only for 1-100??? (Daniel Cameron 1997)
  5. Re: [random] only for 1-100??? (Daniel Cameron 1997)
  6. [random] only for 1-100??? (Daniel Cameron 1997)
At 01:48 PM 9/2/97 -1000, you wrote: >>>>Is there anyway to specify the range of numbers [random] uses, rather than >>>>the default 1-100? > >>>Use some math on the random number before you use the resulting >>>number for your particular needs ... :) > >>Sure, sure. However, I was hoping just maybe I wouldn't have to massage >>my data every time I need a random value other then between 1-100. Geez, >>even Basic 2.0 on my old Commodore 64 had an RND function... > >All it takes is writing the WebDNA once, and then you have a solution >you can re-use forever with minimal changes to accommodate your >specific needs ... provided you write it right the first time. > >Sincerely, Ken Grome >WebDNA Solutions >http://www.hui.net/dna/webdna.html >Maybe you can give me a few hints? I'm not sure where to start in order to make a proper random number generation routine which would be repurposable. I'd need something that would handle everything from easy stuff like 1-10 to things like 16-536. I think this would be handy code to have. ..................................................................... W O R L D P O I N T I N T E R A C T I V E DANIEL CAMERON web engineer Honolulu San Francisco 2800 woodlawn drive 222 sutter street dcameron@worldpoint.com suite 170 sixth floor www.worldpoint.com honolulu, hi 96822 san francisco, ca 94108 voice.808.539.3932 fax.808.539.3943 page.808.598.8640 ..................................................................... Daniel Cameron

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:

WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Max Record length restated as maybe bug (1997) $Quit, $CloseDatabase corrections (1997) How is it done? (1998) WebCatalog Plug-in for Webstar. (1997) cart (1997) WebCat on 10.0.4 - iTools 6.0 (2001) formatting search results (1999) emailer (1997) What am I missing (1997) Date problems (1997) Incompatibility with WebCat 3 templates ... (2000) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Need help with emailer- 2 issues (1997) Unable to open the demo file (1998) re: Large databases in WebCat (1997) WebCatalog/Mac 2.1b2 New Features (1997) Database Import/Export (1998) Webmerchant/Cybercash (2000) [countWords]? (1997)