RE: Random number generation
- To: mathgroup at smc.vnet.net
- Subject: [mg27915] RE: [mg27864] Random number generation
- From: "David Park" <djmp at earthlink.net>
- Date: Fri, 23 Mar 2001 04:31:47 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Jose,
This will create your list of 300 integers between 0 and 500.
randomlist = Table[Random[Integer, {0, 500}], {300}];
Since you probabaly don't want to look at them as a one column table, this
partitions the list into row of 20 numbers and then displays them as a
row-column table.
Partition[randomlist, 20] // TableForm
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
> From: Jose Lasso [mailto:jml at accessinter.net]
To: mathgroup 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)
>