Re: Re: simple question about random
- To: mathgroup at smc.vnet.net
- Subject: [mg58956] Re: [mg58945] Re: simple question about random
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Mon, 25 Jul 2005 01:12:11 -0400 (EDT)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <dbt2ur$sfm$1@smc.vnet.net> <200507240522.BAA14489@smc.vnet.net>
- Reply-to: murray at math.umass.edu
- Sender: owner-wri-mathgroup at wolfram.com
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 math.umass.edu
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
- References:
- Re: simple question about random
- From: Heath Gerhardt <heathgerhardt@hotmail.com>
- Re: simple question about random