OTPNitro
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Macros
rand.h
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include <time.h>
3
4
#ifdef __unix__
5
# include <sys/types.h>
6
# include <unistd.h>
7
#elif __APPLE__
8
# include <sys/types.h>
9
# include <unistd.h>
10
#endif
11
12
//using namespace std;
13
14
#ifdef WIN32
15
# include <process.h>
16
# define getpid _getpid
17
#endif
18
22
class
Rand
{
23
float
seed;
24
25
public
:
26
Rand
();
27
unsigned
long
getTicks
();
28
void
setSeed
(
float
);
29
float
getSeed
();
30
float
genSeed
();
31
char
getChar
();
32
char
getLetter
();
33
int
getNumber
(
int
);
34
};
35
Generated on Fri Jun 27 2014 19:48:41 for OTPNitro by
1.8.3.1