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


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

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




Is there anyway I could apply something like this to a user cutstomizable
die roll?  My program allows the user to enter the number of dice and then
the number of sides per die, then rolls it from those arguments.

J

-----Original Message-----
From: PJChaser <PJChaser@aol.com>
To: ti-basic@lists.ticalc.org <ti-basic@lists.ticalc.org>
Date: Sunday, January 25, 1998 5:30 PM
Subject: Re: TIB: "Weighting" Dice on TI-85


>
>To weight the dice, instead of saying
>:int(Rand*12)->strength (or whatever you want)
>do
>:int(rand*15)->strength
>:if strength>13
>:12->strength
>:if strength>10 and strength <> 12
>:11->strength
>and this would cause the numbers 11&12 to appear three times more than
normal.
>I don't know what you go up to, but this technique can be applied to weight
>and die.  Hope that this helps.
>PJC II
>