Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 7/13/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Random Number Intrinsic Procedures

The following table lists random number intrinsic procedures.

Name

Procedure Type

Description

RAN

Intrinsic function

Returns the next number from a sequence of pseudorandom numbers of uniform distribution over the range 0 to 1.

RANF

Intrinsic function

Generates a random number between 0.0 and RAND_MAX.

RANDOM_INIT

Intrinsic subroutine

Initailizes the pseudorandom number generator used by RANDOM_NUMBER.

RANDOM_NUMBER

Intrinsic subroutine

Returns a pseudorandom real value greater than or equal to zero and less than one.

RANDOM_SEED

Intrinsic subroutine

Changes the starting point of RANDOM_NUMBER; takes one or no arguments.

RANDU

Intrinsic subroutine

Computes a pseudorandom number as a single-precision value.

The portability routines RANF, RANDOM, and SEED also supply this functionality.