From: Gavin Kistner Date: 2006-01-08T01:55:36+09:00 Subject: Re: Dice Roller (#61) On Jan 7, 2006, at 5:03 AM, Christian Neukirchen wrote: > "Matthew D Moss" writes: > >> Hopefully this ASCII art comes through clean: >> >> Parse tree for: (5d5-4)d(16/d4)+3 >> >> _______________ + _______________ >> | | >> _______ d _______ 3 >> | | >> ___ - ___ ___ / ___ >> | | | | >> ___ d ___ 4 16 ___ d ___ >> 5 5 1 4 > > So what are the maximum and minimum values of this? Min: (5*1-4)*(1)+3 = 1*1+3 = 5 Max: (5*5+4)*(16/4)+3 = 29*4+3 = 119 The min for ndm is always n, because all dice start at 1. The max for ndm is n*m.