MathGroup Archive 2005

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

Search the Archive

Re: Re: simple question about random

  • To: mathgroup at
  • Subject: [mg58956] Re: [mg58945] Re: simple question about random
  • From: Murray Eisenberg <murray at>
  • Date: Mon, 25 Jul 2005 01:12:11 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <dbt2ur$sfm$> <>
  • Reply-to: murray at
  • Sender: owner-wri-mathgroup at

The iterator i and initial value 1 in Table[Random[],{i,1,6}] are 
superfluous.  (But you would want an iterator if the iteration were to 
go, say, from 2 to 6, or from 0 to 5.)

Heath Gerhardt wrote:
> Mazuego wrote:
>>Hi all... The built-in function "Random" gives a random number in a chosen
>>range. How can I have, for example, 6 random numbers with a single
>>instruction? Thank you very much for your answers, and forgive me for the
>>simple question, but I'm new in Mathematica...
> Table[Random[],{i,1,6}]
Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: Setting gridlines thickness in Plot
  • Next by Date: Re: rotate frametick labels
  • Previous by thread: Re: simple question about random
  • Next by thread: Re: simple question about random