Implement random number generator
Co-authored-by: Zirak <zirakertan@gmail.com>
This commit is contained in:
parent
8849d3b47d
commit
f8151a9e50
8 changed files with 287 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue