MathGroup Archive 2001

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

Search the Archive

Re: Random number generation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27902] Re: [mg27864] Random number generation
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Fri, 23 Mar 2001 04:31:23 -0500 (EST)
  • References: <200103220930.EAA08459@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In[1]:=
Table[Random[Integer, {0, 500}], {300}]

will display your 300 random integers between 0 and 500 in a list. I don't
quite understand what you mean by "displaying them in a table". What sort of
table?

In[2]:=
TableForm[%]

will display them as a column of numbers.

Tomas Garza
Mexico City
----- Original Message -----
From: "Jose Lasso" <jml at accessinter.net>
To: mathgroup at smc.vnet.net
Subject: [mg27902] [mg27864] Random number generation


> 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)
>



  • Prev by Date: a few questions
  • Next by Date: Re: DeleteCases
  • Previous by thread: Random number generation
  • Next by thread: Re: Random number generation