4.3BSD-Reno/share/man/cat3/srand.0

Compare this file to the similar file:
Show the results in this format:




RAND(3)                       1990			  RAND(3)



NNAAMMEE
     rand, srand - bad random number generator

SSYYNNOOPPSSIISS
     vvooiidd
     ssrraanndd((sseeeedd))
     uunnssiiggnneedd iinntt sseeeedd;;

     rraanndd(())

DDEESSCCRRIIPPTTIIOONN
     TThheessee iinntteerrffaacceess aarree oobbssoolleetteedd bbyy rraannddoomm((33))..

     The _r_a_n_d function computes a sequence of pseudo-random
     integers in the range of 0 to _R_A_N_D__M_A_X (as defined by the
     header file <stdlib.h>).

     The _s_r_a_n_d function sets its argument as the seed for a new
     sequence of pseudo-random numbers to be returned by _r_a_n_d.
     These sequences are repeatable by calling _s_r_a_n_d with the
     same seed value.

     If no seed value is provided, the functions are automati-
     cally seeded with a value of 1.

SSTTAANNDDAARRDDSS
     RRaanndd and ssrraanndd conform to ANSI X3.159-1989 (``ANSI C'').

SSEEEE AALLSSOO
     random(3)

























Printed 7/27/90                May				1