Re: serie of random number
- To: mathgroup at smc.vnet.net
- Subject: [mg21250] Re: serie of random number
- From: callan at stat.wisc.edu (David Callan)
- Date: Mon, 20 Dec 1999 02:28:11 -0500 (EST)
- Organization: U. of Wisconsin-Madison
- References: <83afuu$r0v@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In article <83afuu$r0v at smc.vnet.net>, Raphael Suire
<raphael.suire at univ-rennes1.fr> 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
>
>
Try splitting (0,1) into n parts by choosing n-1 random numbers in (0,1).
The lengths of the n subintervals thus obtained will be random numbers in
(0,1) summing to 1.
David Callan
Department of Statistics
University of Wisconsin-Madison
1210 W. Dayton Street
Madison, WI 53706-1693
callan at stat.wisc.edu