Generate Random Number

Generates a random number of type double. The number can be distributed normally about 0 (Gaussian distribution) or can have a uniform distribution.

 

Input Arguments

 

 

0

 

Boolean

 

Gaussian distributed?

Determines whether the random numbers should have a Gaussian distribution (like a bell curve) or be distributed uniformly.

 

Return Arguments

 

1

Double

Random Number

The resulting random number.

 

Returned Status

 

SUCCESS

This command always succeeds.

 

Remarks

If the random number is generated uniformly (not Gaussian distributed), it will be between 0 and 1. If Gaussian dis- tributed, it will have no bounds (as a Gaussian distribution is unbounded), but will be centered about 0.