HELPLIB.HLB  —  CPML  random()  Description
    random() is a general random number generator. The argument to
    the random function is an integer passed by reference. There
    are no restrictions on the input argument, although it should
    be initialized to different values on separate runs in order to
    obtain different random sequences. This function must be called
    again to obtain the next pseudo random number. The argument is
    updated automatically.

    The result is a floating-point number that is uniformly
    distributed in the interval (0.0,1.0).

                           Entry-Point Names

    Generic
    Function   Data Type   OpenVMS              Tru64 UNIX
    Name       Required

    random     S_FLOAT     math$random_l_s
               T_FLOAT
               X_FLOAT
               F_FLOAT     math$random_l_f
               G_FLOAT
Close Help