Macros | Functions
mmc_rand_common.h File Reference

random number generator (RNG) independent interface functions More...

Go to the source code of this file.

Macros

#define TWO_PI   (M_PI*2.0)
 
#define EPS   1e-6f
 
#define EPS2   0.1*EPS
 

Functions

inlinefun float rand_next_scatlen (RandType t[RAND_BUF_LEN])
 generate [0,1] random number for the next scattering length
 
inlinefun float rand_next_aangle (RandType t[RAND_BUF_LEN])
 generate [0,1] random number for the next arimuthal angle
 
inlinefun float rand_next_zangle (RandType t[RAND_BUF_LEN])
 generate random number for the next zenith angle
 
inlinefun float rand_next_reflect (RandType t[RAND_BUF_LEN])
 generate random number for reflection test
 
inlinefun float rand_do_roulette (RandType t[RAND_BUF_LEN])
 generate random number for the next zenith angle
 

Detailed Description

random number generator (RNG) independent interface functions