random_seed man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]

RANDOM_SEED(3I)					       Last changed: 1-6-98

NAME
     RANDOM_SEED - Restarts or queries the pseudorandom number generator

SYNOPSIS
     CALL RANDOM_SEED ([[SIZE=]size] [,[PUT=]put] [,[GET=]get])

IMPLEMENTATION
     UNICOS, UNICOS/mk, and IRIX systems

STANDARDS
     Fortran 90

DESCRIPTION
     The RANDOM_SEED intrinsic subroutine restarts or queries the
     pseudorandom number generator used by RANDOM_NUMBER.  It accepts the
     following arguments (note that there must be exactly one argument or
     no arguments present):

     size    Must be scalar and of type integer.  It is an output argument.
	     It is set to the number N of integers that the processor uses
	     to hold the value of the seed.

     put     Must be an integer array of rank one and size >= N.  It is an
	     input argument.  It is used to set the seed value.

     get     Must be an integer array of rank one and size >= N.  It is an
	     output argument.  It is set to the current value of the seed.

     The name of this intrinsic cannot be passed as an argument.

EXAMPLES
	  CALL RANDOM_SEED			    ! initization of seed
	  CALL RANDOM_SEED(SIZE = K)		    ! Sets K = N
	  CALL RANDOM_SEED(PUT = SEEDARRAY(1:K))    ! Set user seed
	  CALL RANDOM_SEED(GET = OLDSEED(1:K))	    ! Get current seed

SEE ALSO
     RANDOM_NUMBER(3I)

     Intrinsic Procedures Reference Manual, publication SR-2138, for the
     printed version of this man page.

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net