Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ srandom(3C) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                              srandom(3C)



        _________________________________________________________________
        srandom                                                  function
        Specify a number with which to start random number generation.
        _________________________________________________________________


        Calling Sequence

        void srandom();
        unsigned seed;
        ...
        srandom(seed);


        Description

        Use the srandom function to specify a seed to be used for the
        random function.  The seed is the number from which random number
        generation will begin.


        Returns

        Unlike srand, the function srandom does not return a value.


        Related Functions

        See also the functions initstate, random, and setstate.

























        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026