diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml index f654e30fe..0a41f2b55 100644 --- a/modules/gdscript/doc_classes/@GDScript.xml +++ b/modules/gdscript/doc_classes/@GDScript.xml @@ -804,10 +804,11 @@ - Random range, any floating point value between [code]from[/code] and [code]to[/code]. + Returns a random floating point value between [code]from[/code] and [code]to[/code] (both endpoints inclusive). [codeblock] prints(rand_range(0, 1), rand_range(0, 1)) # Prints e.g. 0.135591 0.405263 [/codeblock] + [b]Note:[/b] This is equivalent to [code]randf() * (to - from) + from[/code].