summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-11-05 11:04:25 +0100
committerkobewi <kobewi4e@gmail.com>2021-04-22 21:13:43 +0200
commit497c3f97b21292a94946f779f95dfefb0930a8ac (patch)
tree9a0c72e62a34e6bc00eec727b05c2324b5f6c287 /doc/classes
parentc7b97f077a0f62d9e280adbddddc901f35e4f40f (diff)
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">