Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

randinter.C File Reference

#include <time.h>
#include "stdinc.h"

Go to the source code of this file.

Defines

#define MAXNUM   2147483647.0
#define IA   16807
#define IM   2147483647
#define AM   (1.0/IM)
#define IQ   127773
#define IR   2836
#define MASK   123459876
#define IA   16807
#define IM   2147483647
#define AM   (1.0/IM)
#define IQ   127773
#define IR   2836
#define NTAB   32
#define NDIV   (1+(IM-1)/NTAB)
#define EPS   1.e-14
#define RNMX   (1.0-EPS)
#define IM1   2147483563
#define IM2   2147483399
#define AM   (1.0/IM1)
#define IMM1   (IM1-1)
#define IA1   40014
#define IA2   40692
#define IQ1   53668
#define IQ2   52774
#define IR1   12211
#define IR2   3791
#define NTAB   32
#define NDIV   (1+IMM1/NTAB)
#define EPS   1.e-14
#define RNMX   (1.0-EPS)
#define BIG   10

Functions

int srandinter (int seed, int iter)
int get_initial_seed ()
int get_rand_seed ()
int get_current_seed ()
int get_n_rand ()
real randunit ()
real ran0 (int &idum)
real ran1 (int &idum)
real ran2 (int &idum)
real randinter (real a, real b)
real gausrand (real mean, real sdev)


Define Documentation

#define AM   (1.0/IM1)
 

Definition at line 236 of file randinter.C.

#define AM   (1.0/IM)
 

Definition at line 236 of file randinter.C.

#define AM   (1.0/IM)
 

Definition at line 236 of file randinter.C.

#define BIG   10
 

Definition at line 329 of file randinter.C.

#define EPS   1.e-14
 

Definition at line 246 of file randinter.C.

#define EPS   1.e-14
 

Definition at line 246 of file randinter.C.

#define IA   16807
 

Definition at line 178 of file randinter.C.

#define IA   16807
 

Definition at line 178 of file randinter.C.

#define IA1   40014
 

Definition at line 238 of file randinter.C.

#define IA2   40692
 

Definition at line 239 of file randinter.C.

#define IM   2147483647
 

Definition at line 179 of file randinter.C.

#define IM   2147483647
 

Definition at line 179 of file randinter.C.

#define IM1   2147483563
 

Definition at line 234 of file randinter.C.

#define IM2   2147483399
 

Definition at line 235 of file randinter.C.

#define IMM1   (IM1-1)
 

Definition at line 237 of file randinter.C.

#define IQ   127773
 

Definition at line 181 of file randinter.C.

#define IQ   127773
 

Definition at line 181 of file randinter.C.

#define IQ1   53668
 

Definition at line 240 of file randinter.C.

#define IQ2   52774
 

Definition at line 241 of file randinter.C.

#define IR   2836
 

Definition at line 182 of file randinter.C.

#define IR   2836
 

Definition at line 182 of file randinter.C.

#define IR1   12211
 

Definition at line 242 of file randinter.C.

#define IR2   3791
 

Definition at line 243 of file randinter.C.

#define MASK   123459876
 

Definition at line 152 of file randinter.C.

#define MAXNUM   2147483647.0
 

Definition at line 125 of file randinter.C.

#define NDIV   (1+IMM1/NTAB)
 

Definition at line 245 of file randinter.C.

#define NDIV   (1+(IM-1)/NTAB)
 

Definition at line 245 of file randinter.C.

#define NTAB   32
 

Definition at line 244 of file randinter.C.

#define NTAB   32
 

Definition at line 244 of file randinter.C.

#define RNMX   (1.0-EPS)
 

Definition at line 247 of file randinter.C.

#define RNMX   (1.0-EPS)
 

Definition at line 247 of file randinter.C.


Function Documentation

real gausrand ( real mean,
real sdev )
 

Definition at line 331 of file randinter.C.

Referenced by prof_to_init().

int get_current_seed ( )
 

Definition at line 105 of file randinter.C.

int get_initial_seed ( )
 

Definition at line 91 of file randinter.C.

Referenced by c_print_initial_random_parameters(), main(), make_standard_init(), slave_part_of_experiment(), and summarize_scattering_initial().

int get_n_rand ( )
 

Definition at line 112 of file randinter.C.

Referenced by c_print_initial_random_parameters(), get_sigma(), main(), make_standard_init(), master_process(), single_scatter_init(), and slave_part_of_experiment().

int get_rand_seed ( )
 

Definition at line 98 of file randinter.C.

real ran0 ( int & idum )
 

Definition at line 154 of file randinter.C.

real ran1 ( int & idum )
 

Definition at line 188 of file randinter.C.

real ran2 ( int & idum )
 

Definition at line 249 of file randinter.C.

Referenced by randinter().

real randinter ( real a,
real b )
 

Definition at line 312 of file randinter.C.

Referenced by KICK_VELOCITY(), Kroupa_Tout_Gilmore(), YR(), add_dynamics(), adddouble(), c_randinter(), eccf_Thermal_Distribution(), f_randinter(), gausrand(), gauss(), general_power_law(), get_mass(), get_random_mass_ratio(), initialize_root(), main(), make_new_kepler_to_dyn(), mf_GdeMarchi(), mf_Miller_Scalo(), mf_Scalo(), mkscat(), mksecondary(), mksphere(), prof_to_init(), qf_Hogeveen(), random_angle(), random_focussed_maxwellian_velocity(), random_initial_conditions(), random_paczynski_velocity(), randomize_angles(), randomize_created_binary(), set_random_orientation(), single_scatter_init(), smaf_Eggleton(), split_particle(), and srandinter().

real randunit ( )
 

Definition at line 127 of file randinter.C.

int srandinter ( int seed,
int iter )
 

Definition at line 72 of file randinter.C.

Referenced by c_srandinter(), f_srandinter(), get_sigma(), kira_initialize(), main(), mkscat(), slave_part_of_experiment(), and starlab_main().


Generated at Sun Feb 24 09:57:29 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001