mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Expose randfn
to global scope
This commit is contained in:
parent
3c04522ece
commit
a74acca858
9 changed files with 108 additions and 56 deletions
|
@ -53,6 +53,10 @@ uint32_t Math::rand() {
|
|||
return default_rand.rand();
|
||||
}
|
||||
|
||||
double Math::randfn(double mean, double deviation) {
|
||||
return default_rand.randfn(mean, deviation);
|
||||
}
|
||||
|
||||
int Math::step_decimals(double p_step) {
|
||||
static const int maxn = 10;
|
||||
static const double sd[maxn] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue