On Wed, Dec 7, 2011 at 10:16 PM, Ric Sherlock <tikk...@gmail.com> wrote:
> On Tue, Dec 6, 2011 at 11:32 AM, Linda Alvord <lindaalv...@verizon.net> wrote:
>> For number  2  each time you toss the dice, you must get a total for all the
>> 500 dice.  Next you toss the full bucket of dice 199 more times. Make a
>> frequency distribution of the 200 results.
>
> If I implement this description of number 2 I get almost 200 different
> sums of the 200 throws of 500 dice, i.e. almost all of the sums have a
> frequency of 1 (the odd one has 2 or 3).
>
> platonic=: 4 6 8 12 20
> sumtoss=: [: +/ ?@$
> fd=: [: /:~ ({. , #)/.~
> fd 500 200 sumtoss platonic

Sorry sumtoss should be:
sumtoss=: [: +/ 1 + ?@$
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to