Re: simple question about random
- To: mathgroup at smc.vnet.net
- Subject: [mg58931] Re: simple question about random
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sun, 24 Jul 2005 01:21:51 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 7/23/05 at 5:32 AM, mazuego at yahoo.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... Load the statistics packages and use RandomArray, i.e. In[1]:= << "Statistics`"; RandomArray[UniformDistribution[0, 1], 6] Out[2]= {0.2804497445221465, 0.211670380827296, 0.8286784278387671, 0.7804577939982774, 0.7097126982987214, 0.32834571525210765} -- To reply via email subtract one hundred and four