mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Implement random number generator
Co-authored-by: Zirak <zirakertan@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user