classref: Sync with current 3.4 branch (716e4e0c2)

This commit is contained in:
Rémi Verschelde
2022-06-19 14:17:53 +02:00
parent 9fd99de648
commit 81e075818e
17 changed files with 38 additions and 25 deletions

View File

@@ -1158,12 +1158,14 @@ Converts an angle expressed in radians to degrees.
- :ref:`float<class_float>` **rand_range** **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to **)**
Random range, any floating point value between ``from`` and ``to``.
Returns a random floating point value between ``from`` and ``to`` (both endpoints inclusive).
::
prints(rand_range(0, 1), rand_range(0, 1)) # Prints e.g. 0.135591 0.405263
**Note:** This is equivalent to ``randf() * (to - from) + from``.
----
.. _class_@GDScript_method_rand_seed: