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

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105658
interpreted = N
texte = > [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 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)
> [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 Govinda

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:

GoLive CyberStudio 1.0.1 (1997) Locking up with WebCatalog... (1997) 4.0.2b5 not finding databases under load (2000) Resetting a Formvariable (2000) Help name our technology! I found it (1997) Major Security Hole (solution with Welcome) (1998) One Hour Email (2002) Server Freeze (1998) [WebDNA] Authentication with UTF-8 (2010) $flushcache causes crash (2000) [WebDNA] WebDNA 7 (2011) embedded search vs. URL (2004) [format xs] freeze (1997) Banners (1997) Orderfile context problem (1998) Two submit buttons ? (1997) File Upload and Platform (2001) WebDNA 5.0 Questions (2003) [include] affect on filepaths for links? (1997) Re1000002: Setting up shop (1997)