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

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105654
interpreted = N
texte = --001636c5afc65cbfc2048bf79638 Content-Type: text/plain; charset=UTF-8 [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 --001636c5afc65cbfc2048bf79638 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

[text]upperLimit=3D10[/te= xt]
[text]yourRandomNumber=3D[math]ceil([random format=3Dfloat]*[= upperLimit])[/math][/text]

Something new every day! =C2=A0 I have been usi= ng a convoluted [table] [search] method to get random numbers with a specif= ic upper limit. =C2=A0Thanks again Dan.

- Tom
=


--001636c5afc65cbfc2048bf79638-- 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)
--001636c5afc65cbfc2048bf79638 Content-Type: text/plain; charset=UTF-8 [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 --001636c5afc65cbfc2048bf79638 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

[text]upperLimit=3D10[/te= xt]
[text]yourRandomNumber=3D[math]ceil([random format=3Dfloat]*[= upperLimit])[/math][/text]

Something new every day! =C2=A0 I have been usi= ng a convoluted [table] [search] method to get random numbers with a specif= ic upper limit. =C2=A0Thanks again Dan.

- Tom
=


--001636c5afc65cbfc2048bf79638-- Tom Duke

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:

Kaaaaahhhhhhhnnnnnnn! (1997) Dreamweaver noedit ??? (2005) Webstar 1.3.1 PPC (1997) [WebDNA] [BULK] 7.x and 6.x on same server (2012) Expert tech support -- a fast and simple solution (long) ... (2000) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) [OT] Linux Mailservers (2003) Instability Problem (1999) Site Test Please (2005) Newbie problem blah blah blah (1997) Encryption (2000) Cart dilemma (2003) SET and C-SET (1998) Many are called but only 6 make it to founditems. (2001) (2004) Sendmail question [Newbie] (1999) Omnibase db manipulation utility available as gift to (1999) Sendmail truncation in Eudora Clients (1998) [WebDNA] Calendar Edit (2010) credit card authorization question (1997)