Re: [CODE]Dice

From: Johan Dustler (Johan.Dustler@epk.ericsson.se)
Date: 12/05/98


> >>>I currently am attempting to make formulas for use with the dice
> >>>function xdy+z, to make it easier to know appr. damage and other things
> >>>with my areas.
> >
> >
> >To roll 1dX the range is (1)...(X) and the average is (X)(X+1)(2X).
> >XdY+N is therefore (N+X) to (XY)+(N) average (X)(X+1)(2X)(Y)+(N).
>
>
> ERRATA: For "(2X)" read "(divide by 2X)".
>
> Sorry.
>

The first formula looks ok, but you could simplify it by eliminating
one X.

   X(X+1)/2X = (X^2+X)/2X = (X+1)/2

In the second formula you have changed the X and Y.
It should look like:

   (Y(Y + 1) / 2Y)X + N

Here you can eliminate one Y.

   ((Y^2 + Y) / 2Y)X + N = ((Y + 1) / 2)X + N

So the formula for calculating:

1dX is (X+1)/2

and

XdY+N is X((Y + 1) / 2) + N


/Johan


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST