Re: random prob
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50409
interpreted = N
texte = as it stands right now it works without this little fix, but i'll implementit. and thank you rob. and thanks to all who responded. this little probwas starting to get to me after two days.----- Original Message -----From: Rob Marquardt
To: WebDNA Talk Sent: Thursday, May 15, 2003 2:51 PMSubject: Re: random prob> 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 randomnumbers> 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 Design>> 800 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/>-------------------------------------------------------------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:
as it stands right now it works without this little fix, but i'll implementit. and thank you rob. and thanks to all who responded. this little probwas starting to get to me after two days.----- Original Message -----From: Rob Marquardt To: WebDNA Talk Sent: Thursday, May 15, 2003 2:51 PMSubject: Re: random prob> 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 randomnumbers> 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 Design>> 800 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/>-------------------------------------------------------------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/
Ron Ceballos
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:
The Depths of Credit Card Payment (2003)
sendmail and foreign charset (2002)
WC2b15 File Corruption (1997)
FW: 2.01 upgrade problems (1997)
Using [random] (1999)
[isfolder] and [filename] (1997)
WebCat2 several catalogs? (1997)
RE: OK, here goes... (1997)
WC1.6 to WC2 date formatting (1997)
Pre-flight public flag (1997)
Changing price for a SLU based on options (size, etc.) (1997)
Email check problems -1 (1999)
Cold Fusion Buster (1997)
Country & Ship-to address & other fields ? (1997)
tpl and Explorer (1998)
tax rate off by 1 cent (1997)
Field name-subcategory (1997)
Is there a max number of fields? (1998)
WebCatalog for Postcards ? (1997)
Tax & Shipping (1997)