This commit is contained in:
Igor Pavlov
2003-12-11 00:00:00 +00:00
committed by Kornel Lesiński
commit 8c1b5c7b7e
982 changed files with 118799 additions and 0 deletions

16
Common/Random.cpp Executable file
View File

@@ -0,0 +1,16 @@
// Common/Random.cpp
#include "StdAfx.h"
#include <time.h>
#include "Common/Random.h"
void CRandom::Init(unsigned int seed)
{ srand(seed); }
void CRandom::Init()
{ Init(time(NULL)); }
int CRandom::Generate() const
{ return rand(); }