SIFEL/GEFEL/RANDY/randy.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include "randy.h"

Go to the source code of this file.

Defines

#define M_PI   3.14159265358979323846
#define RAND_MAX   32767

Functions

double ran2 (long &idum)
long rnd (void)

Define Documentation

#define M_PI   3.14159265358979323846
#define RAND_MAX   32767

Definition at line 28 of file randy.cpp.

Referenced by randy::give_double(), randy::give_long(), print_basic_data(), and rnd().


Function Documentation

double ran2 ( long &  idum  ) 

The rnd2 ( &idum ) function is random number generator from Numerical Recipes in C++, version 3?

Return values:
random number

created

Date
2004/03/19 14:32:14

,

Author
leps

Definition at line 40 of file randy.cpp.

References EPS.

long rnd ( void   ) 

The rnd function returns random number from < 0, RAND_MAX >. Is here only for debug reasons.

Return values:
random number

created

Date
2004/03/19 14:32:14

,

Author
leps

Definition at line 96 of file randy.cpp.

References RAND_MAX.

Referenced by randy::give_double(), and randy::give_long().


Generated by  doxygen 1.6.2