|
NAG[g05cbc] NAG[nag_random_init_repeatable] - Initialize random number generating functions to give repeatable sequence
|
|
Calling Sequence
g05cbc(seed)
nag_random_init_repeatable(. . .)
Parameters
|
seed - integer;
|
|
|
On entry: a number from which the new seed is to be calculated.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_random_init_repeatable (g05cbc) sets the seed used by the basic generator in Chapter g05 to a repeatable initial value.
|
|
Description
|
|
nag_random_init_repeatable (g05cbc) sets the internal seed used by the basic generator g05cac (nag_random_continuous_uniform) to a value calculated from the argument seed:
It then generates the value and discards it, i.e., the first available value is .
This function will yield different subsequent sequences of random numbers if called with different values of seed, but the sequences will be repeatable 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
|
|
|
|
|
Examples
|
|
>
|
seed := 0:
NAG:-g05cbc(seed):
|
|
|
Download Help Document
Was this information helpful?