Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

Random.h

Go to the documentation of this file.
00001 /*
00002  * $Id: Random.h,v 1.3 2002/07/15 06:54:04 virtualcasino Exp $
00003  */
00004 #ifndef __RANDOM_H__
00005 #define __RANDOM_H__
00006 #include<Mutex.h>
00007 #include<stdlib.h>
00008 
00009 using namespace clawsoft;
00010 
00011 class Random:protected Mutex{
00012         protected:
00013         public:
00014                 Random();
00015                 Random(unsigned int seed);
00016                 unsigned int random();
00017                 unsigned int random(unsigned int max = RAND_MAX);
00018                 unsigned int random(int min, int max);
00019                 void autoSeed();
00020 };
00021 
00022 #endif

Powered by:

SourceForge Logo