|
NAG[g05kcc] NAG[nag_rngs_init_nonrepeatable] - Initialize seeds of a given generator for random number generating functions (that pass seeds expicitly) to give non-repeatable sequence
|
|
Calling Sequence
g05kcc(igen, iseed)
nag_rngs_init_nonrepeatable(. . .)
Parameters
|
igen - assignable;
|
|
|
Note: On exit the variable igen will have a value of type integer.
|
|
On entry: must contain the identification number for the generator to be used to return a pseudo-random number and should remain unchanged until a re-initialization by a call to one of the functions g05kbc (nag_rngs_init_repeatable) or nag_rngs_init_nonrepeatable (g05kcc). The values that may be chosen are:
|
|
, the basic generator;
|
|
, a Wichman–Hill generator.
|
|
See the g05 Chapter Introduction for details.
|
|
|
iseed - Vector(1.. , datatype=integer[kernelopts('wordsize')/8]);
|
|
|
On exit: contains values which define an initial state for the generator selected by the argument igen. The values returned will differ for each run of the calling program.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_rngs_init_nonrepeatable (g05kcc) sets the seeds to a non-repeatable initial value for the selected generator as used by and passed to the group of pseudo-random number functions g05k–g05q.
|
|
Description
|
|
nag_rngs_init_nonrepeatable (g05kcc) sets the seeds used by the selected generator mechanism (see the g05 Chapter Introduction) to values calculated from the setting of the real-time clock. The pseudo-random number generator is selected by the input value of the argument igen.
This function will yield different subsequent sequences of random numbers in different runs of the calling program. It should be noted that there is no guarantee of statistical properties between sequences, only within sequences.
|
|
Error Indicators and Warnings
|
|
None.
|
|
|
Examples
|
|
>
|
igen := 1:
iseed := Vector(4, datatype=integer[kernelopts('wordsize')/8]):
NAG:-g05kcc(igen, iseed):
|
|
|
Download Help Document
Was this information helpful?