Re: [WebDNA] [random] limit 1-10
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105651
interpreted = N
texte = http://www.webdna.us/random-password-generator-code.dna[text]upperLimit=10[/text][text]yourRandomNumber=[math]ceil([random format=float]*[upperLimit])[/math][/text]--------------------------------------------------From: "Stephen Braun"
Sent: Wednesday, July 21, 2010 5:03 PMTo: Subject: [WebDNA] [random] limit 1-10>> Hello Everyone,>> I would like to use the [random] tag but limit it to 1 thru 10. (or > maybe 11, but the 1-99 in the docs is right out)>> I've tried to put it within a [loop] to 1000, and then test it each time > to see if was within limits, but it didn't work with the> [/loop] [/then] and [break] tags each causing way too much fussiness.>> I've searched the old archives, but found no real help there.>> I know that one of you out there in the blogosphere probably has a real > elegant solution.>> Any insight on how to control this random mess would be greatly > appreciated.>> Thanks in advance.> Steve Braun---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
Associated Messages, from the most recent to the oldest:
http://www.webdna.us/random-password-generator-code.dna[text]upperLimit=10[/text][text]yourRandomNumber=[math]ceil([random format=float]*[upperLimit])[/math][/text]--------------------------------------------------From: "Stephen Braun" Sent: Wednesday, July 21, 2010 5:03 PMTo: Subject: [WebDNA] [random] limit 1-10>> Hello Everyone,>> I would like to use the [random] tag but limit it to 1 thru 10. (or > maybe 11, but the 1-99 in the docs is right out)>> I've tried to put it within a [loop] to 1000, and then test it each time > to see if was within limits, but it didn't work with the> [/loop] [/then] and [break] tags each causing way too much fussiness.>> I've searched the old archives, but found no real help there.>> I know that one of you out there in the blogosphere probably has a real > elegant solution.>> Any insight on how to control this random mess would be greatly > appreciated.>> Thanks in advance.> Steve Braun---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us>
"Dan Strong"
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:
2.0Beta Command Ref (can't find this instruction) (1997)
WebCat2 - [include] tags (1997)
Web Developer Product Awards (1997)
creating writefile data from a nested search (1997)
ADMIN ACCESS (1999)
Fwd: Problems with Webcatalog Plug-in (1997)
pop up menu's (1998)
[WebDNA] looking for a team (2010)
ShowNext (1997)
Reversed words (1997)
NetSplat and WebCat2 (1997)
WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998)
[GROUPS] followup (1997)
Web Logs (1998)
Possible Bug in 2.0b15.acgi (1997)
show if date < expiry date (small corrections) (2002)
CMSBuilder (2004)
Setting up WebCatalog with Retail Pro data (1996)
[WebDNA] Populating a menu from a search (2016)
Hello??? (1997)