Re: random prob

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 50407
interpreted = N
texte = on 5/15/2003 1:35 pm, Ron Ceballos at ron@specsimple.com so noted...> and since the random float thing doesn't work i went back to old [math > show=F]floor([random]/13)+1[/math] > and seemingly that works. should i shout yay? :)... Not if you're expecting it to generate numbers from 1-13. : )[random] is a number from 0-99, so this method would give you random numbers from 1-8.If 3.0.7 doesn't support the float parameter, divide [random] by 100 and multiply by the max number in your range.[math]floor([random]/100*13)+1[/math] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: random prob (Ron Ceballos 2003)
  2. Re: random prob (Glenn Busbin 2003)
  3. Re: random prob (Rob Marquardt 2003)
  4. Re: random prob (Ron Ceballos 2003)
  5. Re: random prob (Glenn Busbin 2003)
  6. Re: random prob (Beljaeff, Gene 2003)
  7. Re: random prob (Rob Marquardt 2003)
  8. Re: random prob (Ron Ceballos 2003)
  9. Re: random prob (Rob Marquardt 2003)
  10. Re: random prob (Ron Ceballos 2003)
  11. Re: random prob (Rob Marquardt 2003)
  12. Re: random prob (John Peacock 2003)
  13. Re: random prob (Glenn Busbin 2003)
  14. Re: random prob (Ron Ceballos 2003)
  15. Re: random prob (Rob Marquardt 2003)
  16. random prob (Ron Ceballos 2003)
on 5/15/2003 1:35 pm, Ron Ceballos at ron@specsimple.com so noted...> and since the random float thing doesn't work i went back to old [math > show=F]floor([random]/13)+1[/math] > and seemingly that works. should i shout yay? :)... Not if you're expecting it to generate numbers from 1-13. : )[random] is a number from 0-99, so this method would give you random numbers from 1-8.If 3.0.7 doesn't support the float parameter, divide [random] by 100 and multiply by the max number in your range.[math]floor([random]/100*13)+1[/math] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Rob Marquardt

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:

Bug? (1997) [WebDNA] [if] or [case] or something else (2012) Summary layout (1997) Another question (1997) Display [price] in banner ad (1998) Need help (1998) search function (2005) WCS Newbie question (1997) RE: OK, here goes... (1997) RE: AccountAuthorizer doesn't seem to work (1997) WebCatalog for Postcards ? (1997) taxTotal, grandTotal (1997) WCf2 and nested tags (1997) printing twice? and fix (1997) WebCat2 Append problem (B14Macacgi) (1997) Using Plug-In while running 1.6.1 (1997) Sendmail problem (2002) Searching multiple Databases (1997) searchable list archive (1997) WebCatalog Technical Reference (1997)