summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-12 14:07:47 +0100
committerGitHub <noreply@github.com>2018-12-12 14:07:47 +0100
commita1954e51e8413d3dbfcafc03fd400c16cae7fce9 (patch)
treed73a2e8b3b18a5682454eb37be6cc6d78f315bfe /doc/classes
parentab1a80504e81430be1221a6653fc3934006bbe50 (diff)
parentd376be2bf4c8c8b5bfcb650647ebb73605f8fc81 (diff)
Merge pull request #24135 from Chaosus/rng
Added ranged integer generation function to RNG class
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/RandomNumberGenerator.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/classes/RandomNumberGenerator.xml b/doc/classes/RandomNumberGenerator.xml
index aee9654561..720acc16ba 100644
--- a/doc/classes/RandomNumberGenerator.xml
+++ b/doc/classes/RandomNumberGenerator.xml
@@ -10,7 +10,7 @@
<demos>
</demos>
<methods>
- <method name="rand_range">
+ <method name="randf_range">
<return type="float">
</return>
<argument index="0" name="from" type="float">
@@ -21,6 +21,17 @@
Generates pseudo-random float between [code]from[/code] and [code]to[/code].
</description>
</method>
+ <method name="randi_range">
+ <return type="int">
+ </return>
+ <argument index="0" name="from" type="int">
+ </argument>
+ <argument index="1" name="to" type="int">
+ </argument>
+ <description>
+ Generates pseudo-random 32-bit signed integer between [code]from[/code] and [code]to[/code](inclusive).
+ </description>
+ </method>
<method name="randf">
<return type="float">
</return>
@@ -32,7 +43,7 @@
<return type="int">
</return>
<description>
- Generates pseudo-random 32-bit integer between '0' and '4294967295'.
+ Generates pseudo-random 32-bit unsigned integer between '0' and '4294967295'.
</description>
</method>
<method name="randomize">