summaryrefslogtreecommitdiff
path: root/core/math/math_funcs.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-11-06 16:27:56 +0100
committerGitHub <noreply@github.com>2020-11-06 16:27:56 +0100
commit391d29f558d122798416b5957660d9eeceecd0f5 (patch)
tree4124faa0c5cf14841d23fb77fff406380dbe6a76 /core/math/math_funcs.cpp
parent6797ab67193d0c016952a1138e49a589ae40724a (diff)
parent38fb26794bcc4352c22e46b97408673cf7084c57 (diff)
Merge pull request #40718 from Chaosus/rand_range
Exposed randi_range to global funcs + renamed rand_range to randf_range
Diffstat (limited to 'core/math/math_funcs.cpp')
-rw-r--r--core/math/math_funcs.cpp4
1 files changed, 4 insertions, 0 deletions
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);
+}