[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

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


ran2 Source code in ran2.pro

ran2

Name
        ran2
Purpose
        returns one or more uniform random deviate between 0.0 and 1.0
Category
        timing tools adopted from Numerical Recipes Software
Calling Sequence
        ran2(idum)
Input Parameters
        idum : a long integer used to initialize the random number
               generator. The sequence for subsequent call will be
               save by ran2 function in the idum variable. Set idum
               to any negative value to restart the sequence.
Optional Input Parameters
        dim  : the dimension of the result. (default = 1)
Keyword Parameters
        none
Output Parameters
        ran2 : 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
        ran2(-23887878)
Revision History
        Version 1.0, 1998/03/12, Sara Benlloch (IAAT)
                                 (benlloch@astro.uni-tuebingen.de)
        Version 1.1, 2000/11/28, S. Benlloch (IAAT)
                   optional input dim added

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