what about this?

Q=: 100
N=: 10

+/ +/ every ( (([: /:~ [: ? N&#) I. i.) </. #&1) Q

100




On Fri, May 8, 2015 at 11:54 AM, Dan Bron <[email protected]> wrote:
> I have a quantity Q and I want to divide it into a vector V of N
> randomly-sized chunks, such that N=#V and Q=+/V .
>
> Ideas?
>
> -Dan
>
>
>
>
>
> ----------------------------------------------------------------------
> 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