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.