インテル® Fortran コンパイラー 19.0 デベロッパー・ガイドおよびリファレンス

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_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.