TurtleBrains
0.2.1
High quality, portable, C++ API for native application and game development.
tb_random_numbers.h
1
9
#ifndef _TurtleBrains_RandomNumbers_h_
10
#define _TurtleBrains_RandomNumbers_h_
11
12
#include <cmath>
13
14
#include "../core/tb_error.h"
15
#include "tb_constants.h"
16
17
namespace
TurtleBrains
18
{
19
namespace
Math
20
{
21
25
void
SeedRandomGenerator
(
unsigned
int
seed);
26
31
int
RandomInt
(
void
);
32
41
int
RandomInt
(
const
int
minimumValue,
const
int
maximumValue);
42
46
float
RandomFloat
(
void
);
47
56
float
RandomFloat
(
const
float
minimumValue,
const
float
maximumValue);
57
58
};
/* namespace Math */
59
};
/* namespace TurtleBrains */
60
61
namespace
tbMath
=
TurtleBrains::Math
;
62
63
#endif
/* _TurtleBrains_RandomNumbers_h_ */
TurtleBrains::Math
Contains objects and functions for dealing with Vector and Matrix math.
TurtleBrains
Contains all functions, classes and helpers related to game/application development written by Tim "B...
Definition:
tb_application_dialog.h:21
TurtleBrains::Math::SeedRandomGenerator
void SeedRandomGenerator(unsigned int seed)
TurtleBrains::Math::RandomInt
int RandomInt(void)
TurtleBrains::Math::RandomFloat
float RandomFloat(void)
source
math
tb_random_numbers.h
Generated on Sun Dec 27 2015 23:24:22 for TurtleBrains by
1.8.9.1