On entry: the dimension of the
STATE array, or a value
. If the Mersenne Twister (
) is being used and the skip ahead routine
G05KJF or
G05KKF 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 routine to be subsequently called. In all other cases the minimum length, as documented in the constraints below, is returned.