For Q = 3, 

only 1 1 1 would match your criteria

for Q = 4,
2 2 would not be N=#V

1 1 1 1 again appears to be the only match I see.


----- Original Message -----
From: Dan Bron <[email protected]>
To: [email protected]
Cc: 
Sent: Friday, May 8, 2015 11:54 AM
Subject: [Jprogramming] Random distribution

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