#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 M_PI 3.14159265358979323846 |
class randy
File: randy.cpp
Description: C++ interface to the random number generator class with some useful functions
Author: Matej Leps, leps@cml.fsv.cvut.cz
Definition at line 24 of file randy.cpp.
Referenced by climatcond2::compute_values(), climatcond::compute_values(), climatcond::condit_heat_flux(), climatcond2::condit_rain_moisture_flux(), climatcond::condit_rain_moisture_flux(), climatcond2::condit_short_wave_radiat_flux(), climatcond::condit_short_wave_radiat_flux(), climatcond::condit_vapour_diffusion_moisture_flux(), climatcond::condit_vapour_diffusion_moisture_flux_salt(), ortodamrot::give_actual_param_a(), ortodam::give_actual_param_a(), anisodamrot::give_actual_param_a(), anisodam::give_actual_param_a(), give_max_adjacip(), kunmat::kmm(), climatcond2::transmission_coefficient_tt(), climatcond2::transmission_coefficient_tw(), and climatcond2::transmission_coefficient_ww().
#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().
double ran2 | ( | long & | idum | ) |
long rnd | ( | void | ) |
The rnd function returns random number from < 0, RAND_MAX >. Is here only for debug reasons.
random | number |
created
,
Definition at line 96 of file randy.cpp.
References RAND_MAX.
Referenced by randy::give_double(), and randy::give_long().