Chapter 12: Random Number Generation

random_GFSR_table_set

Sets the current table used in the GFSR generator.

Synopsis

#include <imsls.h>

void imsls_random_GFSR_table_set (int table[])

Required Arguments

int table []  (Input)
Array of length 1565 used in the GFSR generators.

Description

The values in table are initialized by the IMSL random number generators. The values are all positive except if the user wishes to reinitialize the array, in which case the first element of the array is input as a nonpositive value. (Usually, one should avoid reinitializing these arrays, but it might be necessary sometimes in restarting a simulation.) If the first element of table is set to a nonpositive value on the call to imsls_random_GFSR_table_set, on the next invocation of a routine to generate random numbers using a GFSR method , the appropriate array will be reinitialized.

Example

See function imsls_random_GFSR_table_get.


Visual Numerics, Inc.
Visual Numerics - Developers of IMSL and PV-WAVE
http://www.vni.com/
PHONE: 713.784.3131
FAX:713.781.9260