Grnd

Description

The grnd() function returns a scalar value from a normally (Gaussian) distributed sample, with zero mean and unit standard deviation. The initial value returned, and the sequence of values, are the same for each Origin session.

No argument is needed. To obtain a random number from a normal distribution with mean = m and standard deviation = sd, use

grnd()*sd+m

Syntax

double grnd()

Return

Returns a value from a normally (Gaussian) distributed sample, with zero mean and unit standard deviation.

Example

col(A)[1] = grnd();