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:

Re:How to Display text in empty fields (1997) changing creator codes (2000) Showing unopened cart (1997) Submitting ampersands in forms... (1998) WebCatalog can't find database (1997) Search for 20 finds ... Eureka! (1997) URGENT! ACGI Stopped!!!! (1997) [WebDNA] Two scripts fail on 6.0 but not on 7.x ... ? (2012) billing system (2003) [WebDNA] shopping sites and the "old commerce tags" (2012) No Subject Line (2000) Robert Minor duplicate mail (1997) RE: How much ram??? (1997) Tip: upgrading to WebCatalog 3.x, fields to watch for (1999) RE: Purchased cart being overwritten - still !?? (1997) RE:It just Does't add up!!! (1997) Secure server question (1997) WebCatalog/Mac 2.1b2 - PIXO (1997) using showpage and showcart commands (1996) Anyone running CommuniGate (2001)