Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Random.cpp

Go to the documentation of this file.
00001 #include "Random.h"
00002 #include <time.h>
00003 
00004 Random::Random(){
00005 
00006 }
00007 
00008 Random::~Random(){
00009 
00010 }
00011 
00012 void Random::setSeed(unsigned int seed){
00013    if(!seed)
00014       srand( (unsigned)time(NULL) );
00015    else
00016       srand(seed);
00017 }
00018 

Thyrix homepageUsers' guide

(C) Arxia 2004-2005