RNIN32

Initializes the 32-bit Mersenne Twister generator using an array.

Required Arguments

KEY— Integer array of length LEN used to initialize the 32-bit Mersenne Twister generator. (Input)

Optional Arguments

LEN — Length of the array key. (Input)

FORTRAN 90 Interface

Generic: CALL RNIN32 (KEY [])

Specific: The specific interface name is S_RNIN32.

FORTRAN 77 Interface

Single: CALL RNIN32 (KEY, LEN)

Description

By default, the Mersenne Twister random number generator is initialized using the current seed value (see RNGET). The seed is limited to one integer for initialization. This function allows an arbitrary length array to be used for initialization. This subroutine completely replaces the use of the seed for initialization of the 32-bit Mersenne Twister generator.

Example

See routine RNGE32.