result = RANF() boolean = RANGET( [arg] ) result = RANSET( [arg] )
ranf Real. The next in a sequence of pseudo-random numbers. ranget Boolean. (Integer.) The current 48 bit seed. ranset Null. (Integer.) A non-sense value to be ignored.
arg Boolean. (Integer, Real.) A 64 bit datum whose lower 48 bits become the new seed.
RANF The external real function RANF returns the next member in a sequence of pseudo-random numbers. Values returned by RANF lie in the open interval (0,1). RANF requires no argument and ignores any that are passed. RANGET The external routine RANGET returns the current seed. If the optional argument is passed, RANGET also returns the current seed in the argument. RANGET may be used as a subroutine or a function. When used as a subroutine, the optional argument should be used. RANSET The external routine RANSET sets or resets the current value of the seed. If the optional argument is not used or its value is zero, the seed is reset to its default value. Otherwise, the lower 48 bits of arg become the new seed. RANSET may be used as either a subroutine or a function. For equations and other information, see Volume 3: UNICOS Math and Scientific Library Reference Manual SR-2081 7.0, Cray Research, Inc.