Re: Random number generation
- To: mathgroup at smc.vnet.net
- Subject: [mg27907] Re: Random number generation
- From: "Paul Lutus" <nospam at nosite.com>
- Date: Fri, 23 Mar 2001 04:31:30 -0500 (EST)
- References: <99chpl$8df@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
"Jose Lasso" <jml at accessinter.net> wrote in message news:99chpl$8df at smc.vnet.net... > Hi MathGroup: > > I suppose this is really easy, but I have little experience with > Mathematica and I need your help. > > Question: How can I generate 300 random numbers (integers), betwenn 0 > and 500, and display the numbers in a table? Thx in advance. Best > regards This is almost what you are after -- the range is 0 - 499 inclusive: Table[Floor[Random[] 500],{i,0,300}] Did you really want 0 - 500? Most people who ask for this don't really want 501 different values. If you do, simply change the "500" above to "501." -- Paul Lutus www.arachnoid.com