Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ random(3C) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                               random(3C)



        _________________________________________________________________
        random                                                   function
        Generate and return a random number.
        _________________________________________________________________


        Calling Sequence

        long random(), num;
        ...
        num = random();


        Description

        The function random produces random numbers.  It is similar to
        the function rand except that random generates a more random
        sequence of numbers.


        Returns

        The function random returns the random number it generates, a
        long int.


        Related Functions

        See also the functions initstate, setstate, and srandom.

























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



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