00001 // $Id: random_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $ 00002 00003 // Random Header File 00004 00005 // Copyright (C) 1999, 2000, Marco Krohn, krohn@itp.uni-hannover.de 00006 // 00007 // This program is free software; you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation; either version 1, or (at your option) 00010 // any later version. 00011 // 00012 // This program is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 00017 #ifndef __RANDOM_INCLUDED 00018 #define __RANDOM_INCLUDED 00019 00020 00021 00022 00023 00024 //---------------------------------------- class TRandom ---------------------------------------- 00025 00035 class TRandom 00036 { 00037 public: 00043 static double getDouble(); 00047 static int getInitNumber(); 00053 static int getInteger( int max ); 00058 static int getMaxRandomNumber(); 00062 static void initialize(); 00068 static void initialize( int init ); 00069 00070 private: 00071 static int fRandInit; 00072 }; 00073 00074 00075 00076 #endif // __RANDOM_INCLUDED