Re: serie of random number
- To: mathgroup at smc.vnet.net
- Subject: [mg21252] Re: [mg21202] serie of random number
- From: Rob Pratt <rpratt at email.unc.edu>
- Date: Mon, 20 Dec 1999 02:28:13 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Just divide each element by the sum: (t=Table[Random[],{n}])/Plus@@t By the way, Random[] defaults to real numbers between 0 and 1. Rob Pratt Department of Operations Research The University of North Carolina at Chapel Hill rpratt at email.unc.edu http://www.unc.edu/~rpratt/ On Fri, 17 Dec 1999, Raphael Suire wrote: > > Dear list, > > maybe a naive question !! > > i want to compute a serie of random number > Table[random[Real,{0,1}],{n}]] > > which sum is always one > > How can i do ?? > > > Raphael Suire > > > ********************************************************************** > Raphael Suire > CREREG - UMR CNRS 6585 > > > Faculte de Sciences Economiques > 7, place > Hoche, > CS86514 > 35065 Rennes-France > raphael.suire at univ-rennes1.fr > **************************************************************************** >