Re: simple question about random
- To: mathgroup at smc.vnet.net
- Subject: [mg58941] Re: simple question about random
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Sun, 24 Jul 2005 01:22:00 -0400 (EDT)
- References: <dbt2ur$sfm$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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... > You could use among the command *Table*. For example: In[1]:= Table[Random[Integer, {1, 6}], {3}] Out[1]= {5, 3, 6} Best regards, /J.M.