home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / ixemul-39.47-env-bin.lha / man / cat3 / rand.0 < prev    next >
Text File  |  1993-12-07  |  1KB  |  67 lines

  1.  
  2. RAND(3)                    UNIX Programmer's Manual                    RAND(3)
  3.  
  4. NNAAMMEE
  5.      rraanndd, ssrraanndd - bad random number generator
  6.  
  7. SSYYNNOOPPSSIISS
  8.      ##iinncclluuddee <<ssttddlliibb..hh>>
  9.  
  10.      _v_o_i_d
  11.      ssrraanndd(_u_n_s_i_g_n_e_d _s_e_e_d)
  12.  
  13.      _i_n_t
  14.      rraanndd(_v_o_i_d)
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      TThheessee iinntteerrffaacceess aarree oobbssoolleetteedd bbyy rraannddoomm((33))..
  18.  
  19.      The rraanndd() function computes a sequence of pseudo­random integers in the
  20.      range of 0 to RAND_MAX (as defined by the header file <_s_t_d_l_i_b_._h>).
  21.  
  22.      The ssrraanndd() function sets its argument as the seed for a new sequence of
  23.      pseudo­random numbers to be returned by rraanndd().  These sequences are re­
  24.      peatable by calling ssrraanndd() with the same seed value.
  25.  
  26.      If no seed value is provided, the functions are automatically seeded with
  27.      a value of 1.
  28.  
  29. SSEEEE AALLSSOO
  30.      random(3)
  31.  
  32. SSTTAANNDDAARRDDSS
  33.      The rraanndd() and ssrraanndd() functions conform to ANSI C3.159­1989 (``ANSI
  34.      C'').
  35.  
  36. BSD Experimental                 June 29, 1991                               1
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.