RANDOM_SEED

Platform

x64, Win32, .NET

Purpose

To restart or interrogate the pseudo-random number generator used by RANDOM_NUMBER .

Class

Subroutine.

Syntax

SUBROUTINE RANDOM_SEED([SIZE, PUT, GET])
INTEGER, INTENT(OUT)::SIZE
INTEGER, INTENT(IN)::PUT
INTEGER, INTENT(OUT)::GET

Description

RANDOM_SEED must have either no arguments or exactly one argument. SIZE is a scalar integer giving the number of integers N that are used by the random number generator to represent the seed. PUT is a one-dimensional array of size > N that can be used to initialise the seed parameters. GET is a one-dimensional array of size > N that can be used to get the current values of the seed parameters.

If RANDOM_SEED is called with no arguments then a default initial value is assigned to the seed.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited