Advanced Analysis Library Only
AnalysisLibErrType Uniform (int numberOfElements, int seed, double noise[]);
Generates an array of random numbers that are distributed uniformly between zero and one.
/* The following code generates an array of random numbers between 0 and 1. */
double x[20];
int n;
n = 20;
Uniform (n, 17, x);
| Input | ||
| Name | Type | Description |
| numberOfElements | integer | Number of elements to generate in the uniform noise pattern. |
| seed | integer | Seed value. When seed 0, Uniform generates a new random sequence using the seed value. When seed < 0, the previously generated random sequence continues. |
| Output | ||
| Name | Type | Description |
| noise | double-precision array | Generated uniform noise pattern between 0 and 1. |
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |