You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Exposed randi_range to global funcs + renamed rand_range to randf_range
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user