Path: news.mathworks.com!not-for-mail 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$1@fred.mathworks.com> References: <ibbfkv$l6m$1@fred.mathworks.com> <PEdCo.12435$lL3.8212@newsfe08.iad> <ibbv7h$da7$1@fred.mathworks.com> <ibe24n$9cr$1@fred.mathworks.com> Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry> NNTP-Posting-Host: webapp-03-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1289392624 17415 172.30.248.38 (10 Nov 2010 12:37:04 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Wed, 10 Nov 2010 12:37:04 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 390839 Xref: news.mathworks.com comp.soft-sys.matlab:685482 "Vassilios Vassiliadis" <v.vassiliadis@fme.aegean.gr> wrote in message <ibe24n$9cr$1@fred.mathworks.com>... > 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. Bruno