Re: TIB: "Weighting" Dice on TI-85


[Prev][Next][Index][Thread]

Re: TIB: "Weighting" Dice on TI-85




I used a slightly modified version of that in my program to make a user
defineable
weight factor.  Thanks.  You have a place in my docs :).

>Try this formula:
>:int(rand*sides-2)+int(rand*2+1)+1->die1
>it isn't as accurate as defining ranges, but this will weight the die in
favor
>of higher numbers.  I assume that the numbers start with 1, not 0.
Depending
>on how you store the die values, you could put this into a for loop for the
>number of die.  I'm not sure what you want to do with them, so i'll just
leave
>it like this.
> Paul Chase II


Follow-Ups: