MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: serie of random number

  • To: mathgroup at smc.vnet.net
  • Subject: [mg21255] Re: [mg21202] serie of random number
  • From: Jean-Marie Thomas <jmt at agat.net>
  • Date: Mon, 20 Dec 1999 02:28:17 -0500 (EST)
  • Organization: TeA
  • References: <199912170624.BAA02102@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Module[{r},
r=Table[Random[],{10}];
r/Plus@@r]

Note that the sum of the list is the real number 1.0 and not the integer number
1.


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
> ****************************************************************************


  • Prev by Date: Q: Conjugate
  • Next by Date: Re: serie of random number
  • Previous by thread: serie of random number
  • Next by thread: Re: serie of random number