Path: news.mathworks.com!not-for-mail
From: "Wendy " <wlq121@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: random numbers
Date: Fri, 28 May 2010 00:52:06 +0000 (UTC)
Organization: University of Toronto
Lines: 6
Message-ID: <htn43m$3t0$1@fred.mathworks.com>
Reply-To: "Wendy " <wlq121@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1275007926 4000 172.30.248.35 (28 May 2010 00:52:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 28 May 2010 00:52:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2073768
Xref: news.mathworks.com comp.soft-sys.matlab:640031

Hi all, 

I want to generate 30 random numbers that are between 0 and 1, and these 30 numbers have to add up to 1. Does anyone know how to generate random numbers that add up to a certain value?

Thank you in advance,
Wendy