Re: [WebDNA] [random] limit 1-10

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105659
interpreted = N
texte = Someone on the list showed me this solution in 2001. -Dan -------------------------------------------------- From: "Govinda" Sent: Thursday, July 22, 2010 8:00 AM To: Subject: Re: [WebDNA] [random] limit 1-10 >> [text]upperLimit=10[/text] >> [text]yourRandomNumber=[math]ceil([random format=float]*[upperLimit]) >> [/math][/text] >> >> Something new every day! I have been using a convoluted [table] >> [search] method to get random numbers with a specific upper limit. >> Thanks again Dan. >> >> - Tom > > yeah! In my case I did not know (let alone when) they snuck in that > "format=float" [random] param. Just what was needed to enable this > kind of function for generating a random # in any desired range. > So glad to find out another useful feature! :-) > > ------------ > Govinda > govinda.webdnatalk@gmail.com > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [random] limit 1-10 (Stephen Braun 2010)
  2. Re: [WebDNA] [random] limit 1-10 ("Dan Strong" 2010)
  3. Re: [WebDNA] [random] limit 1-10 (Govinda 2010)
  4. Re: [WebDNA] [random] limit 1-10 (Tom Duke 2010)
  5. Re: [WebDNA] [random] limit 1-10 ("Dan Strong" 2010)
  6. Re: [WebDNA] [random] limit 1-10 (Kenneth Grome 2010)
  7. [WebDNA] [random] limit 1-10 (Stephen Braun 2010)
Someone on the list showed me this solution in 2001. -Dan -------------------------------------------------- From: "Govinda" Sent: Thursday, July 22, 2010 8:00 AM To: Subject: Re: [WebDNA] [random] limit 1-10 >> [text]upperLimit=10[/text] >> [text]yourRandomNumber=[math]ceil([random format=float]*[upperLimit]) >> [/math][/text] >> >> Something new every day! I have been using a convoluted [table] >> [search] method to get random numbers with a specific upper limit. >> Thanks again Dan. >> >> - Tom > > yeah! In my case I did not know (let alone when) they snuck in that > "format=float" [random] param. Just what was needed to enable this > kind of function for generating a random # in any desired range. > So glad to find out another useful feature! :-) > > ------------ > Govinda > govinda.webdnatalk@gmail.com > > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > "Dan Strong"

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:

international time (1997) Bug Report, maybe (1997) Navigator 4.01 (1997) WC2.0 Memory Requirements (1997) [Webcat 2]Next (1997) Hiding the URL(was Cart ID Duplication) (2001) WebCat2 - Getting to the browser's username/password data (1997) Just Testing (1997) WC2.0 Memory Requirements (1997) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Search repost: (2000) [Fwd: F3 database munching] (1997) WebCatalog Features (1997) The word TYPE in search contexts and fields (1998) RE: Displaying Location (1997) Trouble with formula.db + more explanation (1997) Date search - yes or no (1997) Check for OS (2003) [TaxableTotal] - not working with AOL and IE (1997) Initiating NewCart (1997)