MathGroup Archive 2007

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

Search the Archive

Re: Beginner--Help on Listing Values


Hi,

and
RandomList[n_Integer]:=#/Total[#] &[Table[Random[],{n}]]

will not help ?

Regards
   Jens

m.lungay at gmail.com wrote:
> I need to create a list of probability values for a certain random variable X. It is very difficult if i keep on enumerating the entries especially when the length required is large, say the list is of length 100. Maybe there is some way where I could generate the entries in a random manner. There is a code Random[], but how could I implement it in a List manner so that the sum of the results must be 1. Please help!
> 
>  
> 
> Link to the forum page for this post:
> http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=17333#p17333
> Posted through http://www.mathematica-users.org [[postId=17333]]
> 
> 
> 


  • Prev by Date: Re: Length of random index into list
  • Next by Date: Re: Beginner--Help on Listing Values
  • Previous by thread: Re: Beginner--Help on Listing Values
  • Next by thread: Re: Beginner--Help on Listing Values