[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Sand 1, D-72076 Tübingen, Germany
[Uni logo]


ran3 Source code in ran3.pro

ran3

Name
        ran3
Purpose
        returns a uniform random deviate between 0.0 and 1.0
Category
        timing tools adopted from Numerical Recipes Software
Calling Sequence
        ran3(idum)
Input Parameters
        idum : set IDUM to any negative value to initialize or
        reinitialize the sequence
Optional Input Parameters
        none
Keyword Parameters
        none
Output Parameters
        ran3 : uniform random deviate between 0.0 and 1.0
Optional Output
        none
Common Blocks
        none
Side Effects
        none
Restrictions
        set IDUM to any negative value to initialize or
        reinitialize the sequence
Procedure
        none
Example
        ran3(-23887878L)
Revision History
        Version 1.0, 1998/03/12  Sara Benlloch (IAAT)
                                 (benlloch@astro.uni-tuebingen.de)
    CVS Version 1.2, 2001/03/13 Joern Wilms
        changed the example, added a few more LONG-statements in
        comparisons. When restarting the RNG with the same seed the
        same sequence of RNGs was NOT produced due to a bug in the
        initialization subroutine --> that has been changed by now
        correctly working with base 1 arrays instead of base 0
        (randomization was thrown off course that way).
        Version 1.3, 2001/03/13 Joern Wilms
        removed debugging code that was erroneously left in

Last modified by pro2html on 2005 January 04 at 16:41 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically