double GenerateRandomNumbers_ns ( randgen_ns*  rand,   double*  results,   int  num,   const char*  options )

Generates num pseudo-random numbers using rand and puts them in the array results, returning the first one.

The numbers will be between 0 (inclusive) and 1 (exclusive), that is, from the interval [0,1).

results should be an array with enough room to store the required numbers, or results may be NULL (in which case it will still return the random number, and it will change the state of rand as if all the numbers were generated).

rand will be left in a state to generate further random numbers, or it can be passed to any Netica API function that takes a randgen_ns.

Pass NULL for options; it is only for future expansion.

Version:

Versions 5.02 and later have this function.

See also:

NewRandomGenerator_ns    To create a new randgen_ns.

Example:

See NewRandomGenerator_ns.