[SciPy-user] random gaussian array SOLVED

sandric ionut sandricionut@yahoo....
Tue Nov 13 07:23:29 CST 2007

I have found it.

randomArray = numpy.random.normal(mean, stdev, (shape))

It works OK

Thank's again

----- Original Message ----
From: Matthieu Brucher <matthieu.brucher@gmail.com>
To: SciPy Users List <scipy-user@scipy.org>
Sent: Monday, November 12, 2007 4:11:08 PM
Subject: Re: [SciPy-user] random gaussian array

Yes, look into numpy.random -> norm


2007/11/12, sandric ionut <sandricionut@yahoo.com>:
I want to create an random Gaussian 2D array with an exact size. For example I want my array to look like:
2 3 4 0 1 1
2 3 3 4 1 1
3 2 5 6 7 8
all the values should be randomly generated from a Gaussian distribution with mean and standard deviation
Is it possible to do it with scipy or numpy?
Thank you

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 

SciPy-user mailing list

French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  http://overview.mail.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071113/da75846b/attachment-0001.html 

More information about the SciPy-user mailing list