Re: Random number generation
- To: mathgroup at smc.vnet.net
- Subject: [mg27919] Re: Random number generation
- From: "Ian McInnes" <ian at whisper-wood.demon.co.uk>
- Date: Fri, 23 Mar 2001 04:31:54 -0500 (EST)
- References: <99chpl$8df@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
To generate and display a flat list of 300 random integer values from 0 to 500: Table[Random[Integer, {0, 500}], {300}] To generate a matrix of 30 rows by 10 columns and display in tabular form: Table[Random[Integer, {0, 500}], {30}, {10}] //TableForm Regards, Ian McInnes. "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. > > Jose M Lasso (Mathematica rookie) >