From 497c3f97b21292a94946f779f95dfefb0930a8ac Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Thu, 5 Nov 2020 11:04:25 +0100 Subject: Call randomize() automatically --- doc/classes/@GlobalScope.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'doc') 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 @@ 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. -- cgit v1.2.3