Re: Obtaining a dice result
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68443
interpreted = N
texte = Try this[math show=T]DiceNumber=ceil([RANDOM format=float]*6)[/math]On 09 Feb 2007, at 7:07 PM, Gary Krockover wrote:> Can a die roll be [random]ly generated (1-6) with an even number of > chances per side?>> I can get a 1-6 result:>> [format .0f][math]([getchars start=1&end=1][RANDOM][/getchars]+1)/ > 1.75[/math][/format]>> However 4 and 6 only come up in one chance where the other numbers > come up twice:>> 1> 1> 2> 2> 3> 3> 4> 5> 5> 6>> I'd like to put this into a [function], is there another way to get > a random 1-6 roll? Any suggestions welcomed!>> GJK>>> -------------------------------------------------------------> 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 digest@talk.smithmicro.com>> 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:
Try this[math show=T]DiceNumber=ceil([RANDOM format=float]*6)[/math]On 09 Feb 2007, at 7:07 PM, Gary Krockover wrote:> Can a die roll be [random]ly generated (1-6) with an even number of > chances per side?>> I can get a 1-6 result:>> [format .0f][math]([getchars start=1&end=1][random][/getchars]+1)/ > 1.75[/math][/format]>> However 4 and 6 only come up in one chance where the other numbers > come up twice:>> 1> 1> 2> 2> 3> 3> 4> 5> 5> 6>> I'd like to put this into a [function], is there another way to get > a random 1-6 roll? Any suggestions welcomed!>> GJK>>> -------------------------------------------------------------> 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 digest@talk.smithmicro.com>> 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/
Stuart Tremain
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:
Giving out error pages (1997)
Blacklisted (2002)
TCPConnect misbehavin' for me. (2000)
SKU number. (2000)
iis 4.0 (1997)
Rhapsody? (1997)
[isfile] ? (1997)
WebCat2 several catalogs? (1997)
Need relative path explanation (1997)
Help!!!! (1999)
WC Database Format (1997)
OH MY GOD! (1998)
form data submission gets truncated (1997)
Practice runs ? (1997)
Still having install problems (2000)
Problem with Formulas.db (1998)
Cancel Subscription (1996)
Webcat deletes last line from Excel-saved text db (2004)
WebCommerce: Folder organization ? (1997)
SV: Mass Mail (2000)