summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnutrix <numaanzaheerahmed@yahoo.com>2022-10-08 05:05:15 +0530
committerAnutrix <numaanzaheerahmed@yahoo.com>2022-10-08 12:26:26 +0530
commita871114339a42ce62c8a126b847cd3adcb9603ba (patch)
tree61dcc296d6a0d542915e4e80bbf8cee1b8ef3e9a /doc
parent18177828ad97286ca88cbdcfb763c967858d051b (diff)
Randomize RandomNumberGenerator instances' default seed
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/RandomNumberGenerator.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/classes/RandomNumberGenerator.xml b/doc/classes/RandomNumberGenerator.xml
index b8a290381f..a6254788ce 100644
--- a/doc/classes/RandomNumberGenerator.xml
+++ b/doc/classes/RandomNumberGenerator.xml
@@ -10,10 +10,9 @@
[codeblock]
var rng = RandomNumberGenerator.new()
func _ready():
- rng.randomize()
var my_random_number = rng.randf_range(-10.0, 10.0)
[/codeblock]
- [b]Note:[/b] The default values of [member seed] and [member state] properties are pseudo-random, and changes when calling [method randomize]. The [code]0[/code] value documented here is a placeholder, and not the actual default seed.
+ [b]Note:[/b] The default values of [member seed] and [member state] properties are pseudo-random, and change when calling [method randomize]. The [code]0[/code] value documented here is a placeholder, and not the actual default seed.
</description>
<tutorials>
<link title="Random number generation">$DOCS_URL/tutorials/math/random_number_generation.html</link>