Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

random.C

Go to the documentation of this file.
00001 /*!
00002  *  \file random.C
00003  *  \brief Contains the implementation of the non-inline functions of the
00004  *  RandomGen class.
00005  *  \ingroup group_MLIB
00006  *
00007  */
00008 
00009 #include "std/support.H"
00010 #include "random.H"
00011 
00012 long mlib::RandomGen::R_MAX = RAND_MAX;
00013 
00014 void 
00015 mlib::RandomGen::update()  {
00016   //REPLACE THIS WITH OUR SLY NEW CROSS PLATFORM RANDOM FUNCTION;
00017   //WORKS AS LONG AS A SEED DOES NOT RETURN ITSELF
00018 
00019   srand48 ( _seed ) ;
00020   _seed =  lrand48();
00021 
00022 }

Generated on Mon Sep 18 11:39:33 2006 for jot by  doxygen 1.4.4