summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-23 10:17:11 +0200
committerGitHub <noreply@github.com>2021-04-23 10:17:11 +0200
commit492b8aa9a5c440ec1fc64667915038f64c828f8a (patch)
treebe0f5efe093040f78b4c835107396aa5751636a2 /doc/classes
parenta3fbc0b4e5a690c0a232d7780fef1224257be6cb (diff)
parent497c3f97b21292a94946f779f95dfefb0930a8ac (diff)
Merge pull request #43330 from KoBeWi/rngesus
Call randomize() automatically
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/@GlobalScope.xml5
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml
index 25f8f22d44..95108f1613 100644
--- a/doc/classes/@GlobalScope.xml
+++ b/doc/classes/@GlobalScope.xml
@@ -804,10 +804,7 @@
<method name="randomize">
<description>
Randomizes the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time.
- [codeblock]
- func _ready():
- randomize()
- [/codeblock]
+ [b]Note:[/b] This method is called automatically when the project is run. If you need to fix the seed to have reproducible results, use [method seed] to initialize the random number generator.
</description>
</method>
<method name="range_lerp">