On entry: the dimension of the
state array, or a value
. If the Mersenne Twister (
) is being used and the skip ahead function
nag_rand_skip_ahead (g05kjc) or
nag_rand_skip_ahead_power2 (g05kkc) will be called subsequently, then you must ensure that
.
On exit: if
on entry, then the required length of the
state array for the chosen base generator, otherwise
lstate is unchanged. When
(Mersenne Twister) a value of
is returned, allowing for the skip ahead function to be subsequently called. In all other cases the minimum length, as documented in the constraints below, is returned.