Random number generation: Fix comment for randi_range() example (#4998)

This commit is contained in:
soringherghisan
2021-06-15 20:09:20 +03:00
committed by GitHub
parent b12e649f59
commit 94ff2dde80

View File

@@ -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))