#include "Define.h"
#include <limits>
#include <random>
Go to the source code of this file.
static SFMTRand * GetRng()
Definition: Random.cpp:26
T max(const T &x, const T &y)
Definition: g3dmath.h:320
T min(const T &x, const T &y)
Definition: g3dmath.h:305
#define ASSERT
Definition: Errors.h:55
static SFMTRand * GetRng()
Definition: Random.cpp:26
T max(const T &x, const T &y)
Definition: g3dmath.h:320
T min(const T &x, const T &y)
Definition: g3dmath.h:305
int32_t int32
Definition: g3dmath.h:167
#define ASSERT
Definition: Errors.h:55
static SFMTRand * GetRng()
Definition: Random.cpp:26
uint32_t BRandom()
Definition: SFMT.h:240
double Random()
Definition: SFMT.h:227
static SFMTRand * GetRng()
Definition: Random.cpp:26
double Random()
Definition: SFMT.h:227
static SFMTRand * GetRng()
Definition: Random.cpp:26
bool roll_chance_f |
( |
float |
chance | ) |
|
|
inline |
TC_COMMON_API double rand_chance()
Definition: Random.cpp:74
bool roll_chance_i |
( |
int |
chance | ) |
|
|
inline |
55 return chance >
irand(0, 99);
TC_COMMON_API int32 irand(int32 min, int32 max)
Definition: Random.cpp:39
static SFMTRand * GetRng()
Definition: Random.cpp:26
T max(const T &x, const T &y)
Definition: g3dmath.h:320
T min(const T &x, const T &y)
Definition: g3dmath.h:305
#define ASSERT
Definition: Errors.h:55
uint32_t URandom(uint32_t min, uint32_t max)
Definition: SFMT.h:208
static SFMTRand * GetRng()
Definition: Random.cpp:26
T max(const T &x, const T &y)
Definition: g3dmath.h:320
T min(const T &x, const T &y)
Definition: g3dmath.h:305
#define ASSERT
Definition: Errors.h:55
uint32_t URandom(uint32_t min, uint32_t max)
Definition: SFMT.h:208