diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-07-26 13:52:24 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2020-11-06 17:06:26 +0300 |
commit | 38fb26794bcc4352c22e46b97408673cf7084c57 (patch) | |
tree | 6e17a5a21e4d8c9cd58f3b0e214e259e3ec0e679 /core/math/random_pcg.h | |
parent | df2abc55be9c8b9f419a1b99cbad94024d150a09 (diff) | |
download | redot-engine-38fb26794bcc4352c22e46b97408673cf7084c57.tar.gz |
Exposed randi_range to global funcs + renamed rand_range to randf_range
Diffstat (limited to 'core/math/random_pcg.h')
-rw-r--r-- | core/math/random_pcg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/random_pcg.h b/core/math/random_pcg.h index dfdae53eed..fe6b1b5639 100644 --- a/core/math/random_pcg.h +++ b/core/math/random_pcg.h @@ -133,7 +133,7 @@ public: double random(double p_from, double p_to); float random(float p_from, float p_to); - real_t random(int p_from, int p_to) { return (real_t)random((real_t)p_from, (real_t)p_to); } + int random(int p_from, int p_to); }; #endif // RANDOM_PCG_H |