Author(s): CDC | Library: KERNLIB or Fortran intrinsic |
Submitter: H. Lipps (not CDC or Cray) | Submitted: 02.06.1980 |
Language: Fortran or Assembler | Revised: 24.06.1985 |
Subroutine subprogram RANGET makes the current seed value of RANF and DRANF available to the user, and subroutine RANSET restores a seed value for further use by RANF and DRANF.
On CDC computers, the subprograms other than DRANF are part of Control Data's Fortran execution-time library.
The non-CDC versions of RANF and DRANF use the same multiplier (2875 A2E7 B175), the same initial seed value (2BC6 8CFE 166D), and the same modulus (2**48). They thus generate, within the limitations of machine accuracy, the same random sequence as the CDC versions.
DRANF is identical to RANF except that it returns a function value of type DOUBLE PRECISION.
Structure:
SUBROUTINE and FUNCTION subprograms
User Entry Names: RANF, DRANF, RANGET,
RANSET
Usage:
In any arithmetic expression,
RANF() or DRANF()
CALL RANGET(SEED) CALL RANSET(SEED)
References: