GNU Info

Info Node: (g77-295.info)IRand Intrinsic

(g77-295.info)IRand Intrinsic


Next: IsaTty Intrinsic Prev: IOr Intrinsic Up: Table of Intrinsic Functions
Enter node , (file) or (file)node

IRand Intrinsic
...............

     IRand(FLAG)

IRand: `INTEGER(KIND=1)' function.

FLAG: `INTEGER'; OPTIONAL; scalar; INTENT(IN).

Intrinsic groups: `unix'.

Description:

   Returns a uniform quasi-random number up to a system-dependent limit.
If FLAG is 0, the next number in sequence is returned; if FLAG is 1,
the generator is restarted by calling the UNIX function `srand(0)'; if
FLAG has any other value, it is used as a new seed with `srand()'.

   Note: SRand Intrinsic.

   *Note:* As typically implemented (by the routine of the same name in
the C library), this random number generator is a very poor one, though
the BSD and GNU libraries provide a much better implementation than the
`traditional' one.  On a different system you almost certainly want to
use something better.


automatically generated by info2www version 1.2.2.9