If your goal is to generate a bunch of independent random numbers, the power 
conjunction is overkill.  Try something like the following:

   3 $ 10
10 10 10
   ? 3 $ 10
0 7 8
   3 ?@$ 10
9 2 2

Note that J recognizes ?@$ as a special verb, and so will run it fast (relative 
to other methods).

-Dan

Please excuse typos; composed on a handheld device.

On Dec 15, 2012, at 6:34 AM, "Dr. Heinz Schild" 
<[email protected]> wrote:

> A Power Conjunction normally evaluates a function, here rF, only on the first 
> call. Is there a way to compute the value of such a function on each call?
> An example: 
>    fR =: ?10
>      ((fR , ])^: 3)''
> 6 6 6
> Regards
> Heinz
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to