RANDOM_NUMBER

Platform

x64, Win32, .NET

Purpose

To get a pseudo-random number or an array of pseudo-random numbers in a uniform distribution over the range 0 < x < 1.

Class

Subroutine.

Syntax

SUBROUTINE RANDOM_NUMBER(HARVEST)
REAL,INTENT(OUT)::HARVEST

Description

HARVEST may be a scalar which receives a single pseudo-random number or it may be an array to receive a sequence of pseudo-random numbers. The seed used by the random number generator can be set and interrogated using the subroutine RANDOM_SEED .

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited