RANDOM(3F)	    UNIX Programmer's Manual	       RANDOM(3F)


NAME
     random, drandm, irandm - better random number generator

SYNOPSIS
     function irandm (iflag)

     function random (iflag)

     double precision function drandm (iflag)

DESCRIPTION
     These functions use random(3) to generate sequences of ran-
     dom numbers, and should be used rather than the older func-
     tions described in man 3f rand. If iflag is non-zero, it is
     used as a new seed for the random number generator, and the
     first new random value is returned.

     Irandm returns positive integers in the range 0 through
     2147483647 ( 2**31-1).  Random and drandm return values in
     the range 0. through 1.0 by dividing the integer random
     number from random(3) by 2147483647 .

FILES
     /usr/lib/libF77.a

SEE ALSO
     random(3)


Printed 11/26/99	  May 15, 1985				1


 
Generated: 2016-12-26
Generated by man2html V0.25
page hit count: 1007
Valid CSS Valid XHTML 1.0 Strict