Răsfoiți Sursa

updated description of Array.shuffle to properly describe that it uses the same common seed at every runtime, thus being reproducible in general

(cherry picked from commit d02ecd5a189a541395a586a1d9086fcf4d7a0acb)
hbina085 6 ani în urmă
părinte
comite
8cee39fe21
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      doc/classes/Array.xml

+ 1 - 1
doc/classes/Array.xml

@@ -291,7 +291,7 @@
 		</method>
 		</method>
 		<method name="shuffle">
 		<method name="shuffle">
 			<description>
 			<description>
-				Shuffles the array such that the items will have a random order.
+				Shuffles the array such that the items will have a random order. This method uses the global random number generator common to methods such as [method @GDScript.randi]. Call [method @GDScript.randomize] to ensure that a new seed will be used each time if you want non-reproducible shuffling.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="size">
 		<method name="size">