RANDSEED Call

CALL RANDSEED( seed <, reinit> ) ;

The RANDSEED subroutine sets the initial random seed for the RANDGEN subroutine.

The input arguments to the RANDSEED call are as follows:

seed

is a number to be used to initialize the RANDGEN random number generator.

reinit

specifies whether the random number stream can be reinitialized after the first initialization, within the same PROC IML session.

The RANDSEED subroutine creates an initial random seed for subsequent RANDGEN calls. If RANDSEED is not called, an initial seed is generated from the system clock. This subroutine is normally used when it is desirable to reproduce the same random number stream in different PROC IML sessions. The optional reinit parameter controls whether the seed is reinitialized within the same PROC IML session. If it is set to one, identical seeds produce the same random number sequence; otherwise a second call to RANDSEED within the same PROC IML session is ignored. Normally you should not specify reinit, or you should set it to zero to ensure that you are working with an independent random number stream within your PROC IML session.