Multiply by sigma the result returned by the nextGaussian() method to
obtain a random number distributed normally with standard deviation
sigma. Similarly, add mu to the result returned to obtain a random
number distributed normally with mean mu.
Liviu.
On Jul 6, 2006, at 12:43 PM, Michael Makowsky wrote:
> In the Mersenne Twister class doc there is a blank under the
> nextGaussian() method. I assume that this returns a 0 to 1 double,
> normally distributed. Is there anyway to control the standard
> deviation of the number returned?
>
>
>
> mike
>
>
>
> Michael Makowsky
>
> Graduate Student
>
> Department of Economics
>
> George Mason University
>
> 703.608.1366
>
> [log in to unmask]
>
> website: http://mason.gmu.edu/~mmakowsk
>
>
>
>