From 8cee39fe21964d31adfa1562542d7627c2d3af99 Mon Sep 17 00:00:00 2001 From: hbina085 Date: Sat, 11 May 2019 18:04:47 -0400 Subject: [PATCH] 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) --- doc/classes/Array.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Array.xml b/doc/classes/Array.xml index 1ad4ea7c16d..4444b42b833 100644 --- a/doc/classes/Array.xml +++ b/doc/classes/Array.xml @@ -291,7 +291,7 @@ - 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.