MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Random Vectors with Fixed Sum / Naturals 

Subject: Random Vectors with Fixed Sum / Naturals From: Pablo NB Date: 11 Apr, 2012 04:50:22 Message: 1 of 11 
Hi, I'm looking for a solution for my problem, I'm trying to generate a random vector of nine elements with fixed sum of 3, but they have to be naturals, from 0  3. I tried to modify the following file with no success. 
Subject: Random Vectors with Fixed Sum / Naturals From: Bruno Luong Date: 11 Apr, 2012 06:23:12 Message: 2 of 11 
"Pablo NB" wrote in message <jm32ie$8me$1@newscl01ah.mathworks.com>... 
Subject: Random Vectors with Fixed Sum / Naturals From: Bruno Luong Date: 11 Apr, 2012 06:54:22 Message: 3 of 11 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message 
Subject: Random Vectors with Fixed Sum / Naturals From: Roger Stafford Date: 12 Apr, 2012 04:46:27 Message: 4 of 11 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jm39qu$2mj$1@newscl01ah.mathworks.com>... 
Subject: Random Vectors with Fixed Sum / Naturals From: Bruno Luong Date: 12 Apr, 2012 06:17:20 Message: 5 of 11 
"Roger Stafford" wrote in message <jm5mn3$g70$1@newscl01ah.mathworks.com>... 
Subject: Random Vectors with Fixed Sum / Naturals From: Bruno Luong Date: 12 Apr, 2012 06:23:21 Message: 6 of 11 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jm5s1g$44p$1@newscl01ah.mathworks.com>... 
Subject: Random Vectors with Fixed Sum / Naturals From: Bruno Luong Date: 12 Apr, 2012 06:53:18 Message: 7 of 11 
Waht about this algo: 
Subject: Random Vectors with Fixed Sum / Naturals From: Roger Stafford Date: 13 Apr, 2012 14:28:14 Message: 8 of 11 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jm5u4u$av2$1@newscl01ah.mathworks.com>... 
Subject: Random Vectors with Fixed Sum / Naturals From: Bruno Luong Date: 14 Apr, 2012 07:36:18 Message: 9 of 11 
"Roger Stafford" wrote in message <jm9d5u$het$1@newscl01ah.mathworks.com>... 
Subject: Random Vectors with Fixed Sum / Naturals From: Carl Date: 1 Oct, 2014 19:28:07 Message: 10 of 11 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jmb9di$pul$1@newscl01ah.mathworks.com>... 
Subject: Random Vectors with Fixed Sum / Naturals From: Bruno Luong Date: 1 Oct, 2014 20:26:16 Message: 11 of 11 
> 
No tags are associated with this thread.
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.