Re: random number generator

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon, 14 Nov 2005 07:50:23 -0700 (MST)

> I would like to know the upper limit of the amount of random numbers
> that I could get by calling "random_normal" for once.
>
> For example, if I do it like this:
> ;-----------
> random_setallseed(200511140, 31405002)
>
> shape = (/10,12880,2,31/)
> av = 0.
> sd = 3.
>
> nor = random_normal( av, sd, shape )
> ;------------------------------------
> Will the 10*12880*2*31 (or even more) numbers really be "random"?
>
------------------------------------------

Yes ... they should be. The method contains an algorithm
for generating a stream with a very long period, 2.3 X 10^18.

good luck

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 14 2005 - 07:50:23 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 14 2005 - 15:25:57 MST