Parcourir la source

Merge pull request #28832 from hbina/issue_28689_new

[Old PR was messed up] Document reproducability of Array.shuffle()
Max Hilbrunner il y a 6 ans
Parent
commit
02fa58f4a7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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">