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:

Not really WebCat (1997) Emailer prefs in two places ... (1997) Updating a database once per day - An example (1998) Country & Ship-to address & other fields ? (1997) website pro trouble (1998) [OT] Mac OSX and SSH Telnet (2000) apostrophe in search item (1997) Grep (2003) No more misunderstanding ... yay! :) (1997) Help name our technology! (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) A question on sub-categories (1997) [SHOWIF AND/OR] (1997) Auto entering Friday's date in a field (2002) Review comparison by PC Magazine: Open for On-line Business (1997) Conference? Heres my sniplete contribution! (1998) Editing two databases in one form using [replace]? (1998) includes and cart numbers (1997) Problems with date math (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)