PhotosRandom.h
00001 #ifndef _PhotosRandom_included_
00002 #define _PhotosRandom_included_
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 namespace Photospp
00018 {
00019
00020 class PhotosRandom
00021 {
00022 public:
00023
00024
00025 static void setSeed(int s1,int s2);
00026
00027
00028
00029 static void initialize();
00030
00031
00032 static double randomReal();
00033
00034 protected:
00035 static bool init;
00036 static int iseed[2];
00037 static int i97;
00038 static int j97;
00039 static double uran[97];
00040 static double cran;
00041 static const double cdran;
00042 static const double cmran;
00043 };
00044
00045 }
00046 #endif