On Tue, Oct 11, 2011 at 6:48 AM, David Vaughan
<purpleblue...@googlemail.com> wrote:
> I'm trying to work out the probability of any number being rolled by an 
> n-sided die with r rolls. For example, a 6-sided die with 2 rolls, 7 has 
> probability 6/36=1/6.

  avg=: +/%#
  avg , 7 = +// 2#,:1+i.6
0.166667

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to