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 numbersfrom 1-8.If 3.0.7 doesn't support the float parameter, divide [random] by 100 andmultiply by the max number in your range.[math]floor([random]/100*13)+1[/math]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
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 numbersfrom 1-8.If 3.0.7 doesn't support the float parameter, divide [random] by 100 andmultiply by the max number in your range.[math]floor([random]/100*13)+1[/math]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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)