VMS Help
RTL Routines, MTH$, MTH$RANDOM

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    The Random Number Generator, Uniformly Distributed routine is a
    general random number generator.

    Format

      MTH$RANDOM  seed

  1 - Returns

    OpenVMS usage:floating_point
    type:         F_floating
    access:       write only
    mechanism:    by value

    MTH$RANDOM returns an F-floating random number.

  2 - Argument

 seed

    OpenVMS usage:longword_unsigned
    type:         longword (unsigned)
    access:       modify
    mechanism:    by reference

    The integer seed, a 32-bit number whose high-order 24 bits
    are converted by MTH$RANDOM to an F-floating random number.
    The seed argument is the address of an unsigned longword that
    contains this integer seed. The seed is modified by each call to
    MTH$RANDOM.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.