From 38fb26794bcc4352c22e46b97408673cf7084c57 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Sun, 26 Jul 2020 13:52:24 +0300 Subject: Exposed randi_range to global funcs + renamed rand_range to randf_range --- 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 4154713a87..80413e5c22 100644 --- a/core/math/math_funcs.cpp +++ b/core/math/math_funcs.cpp @@ -181,3 +181,7 @@ double Math::random(double from, double to) { float Math::random(float from, float to) { return default_rand.random(from, to); } + +int Math::random(int from, int to) { + return default_rand.random(from, to); +} -- cgit v1.2.3