Implement random number generator

Co-authored-by: Zirak <zirakertan@gmail.com>
This commit is contained in:
Chaosus
2018-09-21 14:32:17 +03:00
parent 8849d3b47d
commit f8151a9e50
8 changed files with 287 additions and 17 deletions

View File

@@ -32,6 +32,7 @@
#define MATH_FUNCS_H
#include "core/math/math_defs.h"
#include "core/math/random_pcg.h"
#include "core/typedefs.h"
#include "thirdparty/misc/pcg.h"
@@ -41,7 +42,7 @@
class Math {
static pcg32_random_t default_pcg;
static RandomPCG default_rand;
public:
Math() {} // useless to instance