> How do you generate normally distributed random numbers?

Others have already pointed you to the normalrand verb and perhaps
that is all you wanted or needed.

An alternative resource that may be helpful if you are wanting to do
more work with the normal distribution is the stats/distribs addon.

See http://www.jsoftware.com/jwiki/Addons/stats/distribs

In particular:
http://www.jsoftware.com/jwiki/Addons/stats/distribs#rnorm01

   load 'stats/distribs'
   rnorm 5       NB. 5 numbers from the standard normal distrib
_0.588777 0.56664 _0.974964 0.0631566 _0.559564
   10 2 rnorm 5  NB. 5 numbers from a normal distrib with mean 10, stdev 2
12.355 8.42496 10.2307 12.5775 10.207
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to