mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
Random number generation: Fix comment for randi_range() example (#4998)
This commit is contained in:
@@ -105,7 +105,7 @@ and ``to``::
|
||||
<class_RandomNumberGenerator_method_randi_range>` takes two arguments ``from``
|
||||
and ``to``, and returns a random integer between ``from`` and ``to``::
|
||||
|
||||
# Prints a random floating-point number between -10 and 10.
|
||||
# Prints a random integer between -10 and 10.
|
||||
var rng = RandomNumberGenerator.new()
|
||||
rng.randomize()
|
||||
print(rng.randi_range(-10, 10))
|
||||
|
||||
Reference in New Issue
Block a user