Re: <no subject>
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 31005
interpreted = N
texte = >[math]ceil([random]/100*3)[/math]>>How can this function come to equal 0?>>can random be 0?Yes. The docs say random tag produces 1-100, but the docs are WRONG. The random tag actually produces numbers from 0-99 inclusive. I just proved it by doing this test:[loop start=1&end=10000][appendfile file=random][random][appendfile][/loop]No 100's were produced out of 10,000 values, but 111 zero's were produced ...================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Associated Messages, from the most recent to the oldest:
>[math]ceil([random]/100*3)[/math]>>How can this function come to equal 0?>>can random be 0?Yes. The docs say random tag produces 1-100, but the docs are WRONG. The random tag actually produces numbers from 0-99 inclusive. I just proved it by doing this test:[loop start=1&end=10000][appendfile file=random][random][appendfile][/loop]No 100's were produced out of 10,000 values, but 111 zero's were produced ...================================Kenneth Grome, WebDNA Consultant808-737-6499 http://webdna.net================================-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to
Kenneth Grome
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:
hm. (2002)
Cookie setting (2003)
different show next (1997)
WC 2.0 frames feature (1997)
Robots fill event log (1997)
Deleting Multiple Database Records based on Checkbox (1998)
[WebDNA] 301 redirect on linux (2010)
FW: Shipping calculations (1997)
problem: search crashes webstar (1997)
Shipping formula problem (1997)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
Country & Ship-to address & other fields ? (1997)
Trouble with formula.db (1997)
Simple way to create unique SKU (1997)
Search/sort in URL Was: GuestBook example (1997)
(1997)
[WebDNA] HTTP Streaming -- impossible? (2010)
[delete] problem (1997)
emailer (1997)
How true is this? (1999)