The verbs are defined in the 'stats' package.
To see what they are, I do
open 'stats'
that is a 3-line verb. The last line looks promising, so I do
open '~system\packages\stats\statdist.ijs'
That brings up the header, which shows that
normalrand
is what you are looking for. You can scroll down to see the header of
the verb.
Then,
load 'stats'
to load the scripts, and
normalrand 5
0.351534 _1.1435 _0.097765 0.378719 0.543748
Henry Rich
On 8/8/2012 6:37 PM, Owen Marschall wrote:
Hi everyone,
Quick question:
How do you generate normally distributed random numbers? I remember one of the labs showed me how,
but I've tried every possible combination of abbreviations of "normal" and
"random," yet nothing's working. I'm guessing the lab must have loaded some package I
forgot about. What package is this? I've looked through the labs and can't find it.
Also, does anyone know how to make the J dictionary work on a mac? My computer
opens it with gedit for some reason and won't compile it.
Thanks,
Owen
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm