summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-02-18 09:45:10 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-02-18 09:45:10 +0100
commit4e0eb752c2bfd7aac05023af67cd368061012bab (patch)
tree5e694db336541652c57ad89d1dc0a8672b1c1fd2 /doc
parent1ffd1bc8f3e54e5e40d0543a4b6304221b97d13f (diff)
doc: Fix style issues
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/@GDScript.xml6
-rw-r--r--doc/classes/RandomNumberGenerator.xml3
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml
index b56e5bf8e7..a7b58352cc 100644
--- a/doc/classes/@GDScript.xml
+++ b/doc/classes/@GDScript.xml
@@ -809,7 +809,7 @@
<argument index="1" name="to" type="float">
</argument>
<description>
- Random range, any floating point value in the interval [[code]from[/code], [code]to[/code]].
+ Random range, any floating point value between [code]from[/code] and [code]to[/code].
[codeblock]
prints(rand_range(0, 1), rand_range(0, 1)) # prints 0.135591 0.405263
[/codeblock]
@@ -828,7 +828,7 @@
<return type="float">
</return>
<description>
- Returns a random floating point value on the interval [0, 1].
+ Returns a random floating point value on the interval [code][0, 1][/code].
[codeblock]
randf() # returns 0.375671
[/codeblock]
@@ -838,7 +838,7 @@
<return type="int">
</return>
<description>
- Returns a random 32 bit integer. Use remainder to obtain a random value in the interval [0, N] (where N is smaller than 2^32 -1).
+ Returns a random 32 bit integer. Use remainder to obtain a random value in the interval [code][0, N][/code] (where N is smaller than 2^32 -1).
[codeblock]
randi() % 20 # returns random number between 0 and 19
randi() % 100 # returns random number between 0 and 99
diff --git a/doc/classes/RandomNumberGenerator.xml b/doc/classes/RandomNumberGenerator.xml
index 5badfba923..fff13402f1 100644
--- a/doc/classes/RandomNumberGenerator.xml
+++ b/doc/classes/RandomNumberGenerator.xml
@@ -43,7 +43,7 @@
<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).
+ Generates pseudo-random 32-bit signed integer between [code]from[/code] and [code]to[/code] (inclusive).
</description>
</method>
<method name="randomize">
@@ -56,6 +56,7 @@
</methods>
<members>
<member name="seed" type="int" setter="set_seed" getter="get_seed">
+ The seed used by the random number generator. A given seed will give a reproducible sequence of pseudo-random numbers.
</member>
</members>
<constants>