|
NAG[g05cgc] NAG[nag_restore_random_state] - Restore state of random number generating functions
|
|
Calling Sequence
g05cgc(istate, xstate, 'fail'=fail)
nag_restore_random_state(. . .)
Parameters
|
istate - Vector(1.. , datatype=integer[kernelopts('wordsize')/8]);
xstate - Vector(1.. , datatype=float[8]);
|
|
|
|
'fail'=fail - table; (optional)
|
|
|
The NAG error argument, see the documentation for NagError.
|
|
|
|
Description
|
|
|
Purpose
|
|
nag_restore_random_state (g05cgc) restores the value of the seed used by the basic generator in Chapter g05 after a previous call to g05cfc (nag_save_random_state).
|
|
Description
|
|
nag_restore_random_state (g05cgc) restores the state of the basic generator, using information saved by a previous call to g05cfc (nag_save_random_state).
|
|
|
Examples
|
|
>
|
istate := Vector([5804, 462, 1101, 1678, 2078, 485, 0, 0, 0], datatype=integer[kernelopts('wordsize')/8]):
xstate := Vector([257.4169921875, 256, 1, -1], datatype=float[8]):
NAG:-g05cgc(istate, xstate):
|
|
|
Download Help Document
Was this information helpful?