NS/releases/valve/source/stlport/test/regression/rand.h
puzl f44f16d59a made a copy
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@168 67975925-1194-0748-b3d5-c16f83f1a3a1
2005-06-08 18:52:38 +00:00

18 lines
302 B
C++

#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