From a74acca858b5d2f8ee07d6e0cb521dbcdce1e5f0 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Mon, 21 Jun 2021 12:58:31 +0300 Subject: Expose `randfn` to global scope --- core/math/math_funcs.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/math/math_funcs.cpp') diff --git a/core/math/math_funcs.cpp b/core/math/math_funcs.cpp index bbed257f60..2b6d92fe0e 100644 --- a/core/math/math_funcs.cpp +++ b/core/math/math_funcs.cpp @@ -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] = { -- cgit v1.2.3