TSP (libtsp/MS) - MSfGaussRand

## MSfGaussRand

#### Routine

double MSfGaussRand (double rms)

#### Purpose

Generate a Gaussian pseudo-random value

#### Description

This routine generates pseudo-random numbers with a Gaussian distribution. The numbers are generated by summing 12 uniformly distributed pseudo-random numbers. The result is approximately Gaussian (central limit theorem) with a range between -6 and +6 standard deviations. This routine uses the function UTfUnifRand as the source of uniform pseudo-random numbers.

#### Parameters

<- double MSfGaussRand
  Gaussian deviate, mean zero, standard deviation rms
-> double rms
  Root-mean square value of the deviate (standard deviation)

#### Author / revision

P. Kabal Copyright (C) 1996 / Revision 1.5 1996/04/17

#### See Also

MSfUnifRand

Main Index libtsp