Re: Beginner--Help on Listing Values
- To: mathgroup at smc.vnet.net
- Subject: [mg74956] Re: Beginner--Help on Listing Values
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 12 Apr 2007 04:57:09 -0400 (EDT)
- Organization: Uni Leipzig
- References: <evhtp3$2tq$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
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]] > > >