randGauss

randGauss

Works with VSimBase, VSimEM, VSimPD, VSimPA, and VSimVE licenses.

Creates a random sequence distributed according to the Gaussian probability density function:

f(x)=1σ2πexp[(xμ)22σ2]

where μR is the mean and σ>0 is the standard deviation.

randGauss Parameters

sigma (float)

The standard deviation.

mean (float)

The mean.

seed (integer)

Random number seed.

numberSequence (code block, optional)

The <NAFunc numberSequence> is an NAFunc code block that generates a random number; if not specified, Vorpal’s default random number generator (uniform in [0,1)) will be used to generate the initial random number.

Example randGauss Block

<NAFunc velocitySequence_0>
  kind = randGauss
  mean = 0.0
  sigma = 1.0e6
</NAFunc>