MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: gaussian random number generator ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20897] Re: [mg20858] gaussian random number generator ?
  • From: "Tomas Garza" <tgarza at mail.internet.com.mx>
  • Date: Sat, 20 Nov 1999 01:07:10 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Jean-Paul Roy [roy at unice.fr] wrote:

> Where can I find readable sources for implementations
> of gaussian random number generator ?

So, what's wrong with the one in Add-On Statistics`?

In[1}:=
<< Statistics`NormalDistribution`

In[2]:=
ndist = NormalDistribution[0, 1]
Out[2]=
NormalDistribution[0, 1]

In[3]:=
ndist = NormalDistribution[0, 1]
Out[3]=
NormalDistribution[0, 1]

In[4]:=
Table[Random[ndist], {10}]
Out[4]=
{1.21381, 0.0784195, -0.920881, -0.557642, -1.62687, -0.489633, -0.590915, \
0.620241, 1.59018, 0.225757}

Tomas Garza
Mexico City



  • Prev by Date: Symbols and Subscripts
  • Next by Date: Calling a c++ dll with Mathlink
  • Previous by thread: gaussian random number generator ?
  • Next by thread: Progressive graphics output