Obtaining a dice result

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68442
interpreted = N
texte = 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Obtaining a dice result ( Stuart Tremain 2007)
  2. Re: Obtaining a dice result ( Pat McCormick 2007)
  3. Re: Obtaining a dice result ( "Dan Strong" 2007)
  4. Re: Obtaining a dice result ( Gary Krockover 2007)
  5. Re: Obtaining a dice result ( Donovan Brooke 2007)
  6. Re: Obtaining a dice result ( Gary Krockover 2007)
  7. Re: Obtaining a dice result ( Stuart Tremain 2007)
  8. Obtaining a dice result ( Gary Krockover 2007)
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 Web Archive of this list is at: http://webdna.smithmicro.com/ Gary Krockover

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:

'does not contain' operator needed ... (1997) [showif] with ! (2000) list/menus (2000) Expected Behavior? (1999) Webmerch Error (1998) For those of you not on the WebCatalog Beta... (1997) [WebDNA] Installing 6.0 onto Server 2008 (2011) [ShowNext] feature in 2.0 (1997) Price Not Appearing (2000) SetHeader not Working (2006) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) forms and variables (1998) protect tag not working (1998) Problems with [Search] param - Mac Plugin b15 (1997) WebCat2 Append problem (B14Macacgi) (1997) Is there a max number of fields? (1998) WebCatalog stalls (1998) A little help on e-mail (HELP!!! :-) ) (1998) surf express & webcat (1998) Re[2]: Re[2]: [format] problems (2000)