27 if(s1<0 || s1>31327)
Log::Fatal(
"PhotosRandom::setSeed(): Seed(1) out of range [0,31327]",8);
28 if(s2<0 || s2>30080)
Log::Fatal(
"PhotosRandom::setSeed(): Seed(2) out of range [0,30080]",9);
47 long IS1,IS2,IS3,IS4,IS5;
51 IS1=(
iseed[0]/177)%177+2;
53 IS3=(
iseed[1]/169)%178+1;
61 IS5=( ((IS1*IS2)%179)*IS3 )%179;
66 if( (IS4*IS5)%64>=32) S=S+T;
93 if(!
init)
Log::Fatal(
"PhotosRandom::randomReal(): generator not initialized",1);
107 if(ret<0.0) ret+=1.0;
static void setSeed(int s1, int s2)
static double randomReal()
static const double cmran
static ostream & Debug(unsigned short int code=0, bool count=true)
static double(* randomDouble)()
static const double cdran
static void Fatal(string text, unsigned short int code=0)