MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Generate random numbers with fixed sum and one val... 

Subject: Generate random numbers with fixed sum and one value constraint From: Dan Date: 2 Apr, 2012 19:55:11 Message: 1 of 8 
Hi, 
Subject: Generate random numbers with fixed sum and one value constraint From: Greg Heath Date: 2 Apr, 2012 20:17:16 Message: 2 of 8 
On Apr 2, 3:55 pm, "Dan " <scislowski.dan...@gmail.com> wrote: 
Subject: Generate random numbers with fixed sum and one value constraint From: Dan Date: 2 Apr, 2012 21:36:12 Message: 3 of 8 
Exactly what I need. Thank you. 
Subject: Generate random numbers with fixed sum and one value constraint From: ImageAnalyst Date: 2 Apr, 2012 21:52:29 Message: 4 of 8 
On Apr 2, 5:36 pm, "Dan " <scislowski.dan...@gmail.com> wrote: 
Subject: Generate random numbers with fixed sum and one value constraint From: Dan Date: 2 Apr, 2012 22:05:12 Message: 5 of 8 
Actually I need that >0.6 value as first element, but thanks for your interest :) 
Subject: Generate random numbers with fixed sum and one value constraint From: Roger Stafford Date: 3 Apr, 2012 03:38:11 Message: 6 of 8 
"Dan" wrote in message <jld06v$ol0$1@newscl01ah.mathworks.com>... 
Subject: Generate random numbers with fixed sum and one value constraint From: Dmitrey Yershov Date: 14 Nov, 2012 13:59:11 Message: 7 of 8 
Hello! I want to generate random numbers with fixed sum, BUT my problem has such a feature that ai<=xi<=bi (bounds varies from one rundom number to another). Are there some opinions how can I apply the alghorithm of Mr. Stafford  http://www.mathworks.com/matlabcentral/fileexchange/9700  (may be with some modifications) to solve my problem? 
Subject: Generate random numbers with fixed sum and one value constraint From: Dmitrey Yershov Date: 14 Nov, 2012 14:00:17 Message: 8 of 8 
Hello! I want to generate random numbers with fixed sum, BUT my problem has such a feature that ai<=xi<=bi (bounds varies from one rundom number to another). Are there some opinions how can I apply the alghorithm of Mr. Stafford  http://www.mathworks.com/matlabcentral/fileexchange/9700  (may be with some modifications) to solve my problem? 
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.