From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to generate vector of random numbers in any interval (e.g.
Date: Wed, 10 Nov 2010 12:37:04 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 12
Message-ID: <ibe3lg$h07$>
References: <ibbfkv$l6m$> <PEdCo.12435$lL3.8212@newsfe08.iad> <ibbv7h$da7$> <ibe24n$9cr$>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1289392624 17415 (10 Nov 2010 12:37:04 GMT)
NNTP-Posting-Date: Wed, 10 Nov 2010 12:37:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: comp.soft-sys.matlab:685482

"Vassilios Vassiliadis" <> wrote in message <ibe24n$9cr$>...
> Hello,
> another issue which I've not managed to tackle is the following:
> Assuming that I generate a random vector of numbers restricted (only!!!) in the interval 
> [-1 1].Afterwards,as a second step,I'd like to properly 'transform' (is a sense) this vector in order to sum up to 1.How can I achieve this??

A proper way is to describe in term of probability distribution, covariance, conditional probability, then you might get some accurate answer. Because the term "properly transform" does not evoke any meaningful notion to anybody but you.

To me Roger's uniform conditional probability is the most natural. Anything deviates from that is artificial thus must be specified accurately.