Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-AE41F628-FBF7-4422-90F2-DC3B38B05C69
Visible to Intel only — GUID: GUID-AE41F628-FBF7-4422-90F2-DC3B38B05C69
RANF Portability Routine
Portability Function: Generates a random number between 0.0 and RAND_MAX. RANF can be used as a portability routine or as an intrinsic procedure. It is an intrinsic procedure unless you specify USE IFPORT.
Module
USE IFPORT
result = RANF ( )
Results
The result type is REAL(4). The result value is a single-precision pseudo-random number between 0.0 and (2**31) - 1.
The initial seed is set by the following:
CALL SRAND(ISEED)
where ISEED is type INTEGER(4).