home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
stl2vac.zip
/
STLport-4_5_3.zip
/
STLport-4.5.3
/
test
/
regression
/
rand.h
< prev
next >
Wrap
C/C++ Source or Header
|
2001-05-18
|
284b
|
19 lines
#ifndef _rand_h
#define _rand_h
#include <cstdlib>
#if !defined (STLPORT) || defined(__STL_USE_NAMESPACES)
using namespace std;
#endif
class MyRandomGenerator
{
public:
unsigned long operator()(unsigned long n_)
{
return rand() % n_;
}
};
#endif // _rand_h