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 Consultant 808-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:

    
  1. (Aaron Lynch 2003)
  2. (Jay Van Vark 2002)
  3. (Jimi Sweet 2002)
  4. Re: (Rob Marquardt 2001)
  5. Re: (Donovan Brooke 2001)
  6. Re: (Andrew Simpson 2001)
  7. Re: (Brian Fries 2001)
  8. (Andrew Simpson 2001)
  9. Re: (John Peacock 2000)
  10. Re: (Mark Sherwood 2000)
  11. Re: (John Peacock 2000)
  12. (Mark Sherwood 2000)
  13. Re: - selectable size to an ecommerce app? (Bob Minor 2000)
  14. Re: - selectable size to an ecommerce app? (Mark Sherwood 2000)
  15. Re: - selectable size to an ecommerce app? (John Butler 2000)
  16. (Mark Sherwood 2000)
  17. Re: (Glenn Busbin 2000)
  18. (Chris Brandt 2000)
  19. Re: (Chuck Rice 2000)
  20. Re: (Jesse Proudman 2000)
  21. Re: (Joseph D'Andrea 2000)
  22. Re: (Kenneth Grome 2000)
  23. (Bob Minor 2000)
  24. (dale@gmr.dresdner.net 2000)
  25. Re: WebDelivery sweep speed (was Re: ) (WebDNA Support 2000)
  26. FW: (Bob Minor 1999)
  27. (Nitai 1998)
>[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 Consultant 808-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)