usage of function random

From: JinQ Liu <liujq_0912_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 12 2012 - 05:46:36 MDT

hi,
function random_normal(av,sd,N)
av is depicted as "mean of the normal distribution".
I understand it as av=average( all the numbers ) , but

> print(random_normal(2d,1,(/1,2/)))
(0,0)3.112557132052476
(0,1)3.38928735192927
> print(random_normal(2,1,(/1,2/)))
(0,0)3.861252
(0,1)2.223921

both the average is not 2. what is wrong?

Thanks!
JinQ

--
JinQing  LIU                 M.S.
Ocean  University  of  China
--
 

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 12 01:46:53 2012

This archive was generated by hypermail 2.1.8 : Tue Mar 13 2012 - 14:00:14 MDT