doc: Fix style issues

This commit is contained in:
Rémi Verschelde 2019-02-18 09:45:10 +01:00
parent 1ffd1bc8f3
commit 4e0eb752c2
2 changed files with 5 additions and 4 deletions

View File

@ -809,7 +809,7 @@
<argument index="1" name="to" type="float"> <argument index="1" name="to" type="float">
</argument> </argument>
<description> <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] [codeblock]
prints(rand_range(0, 1), rand_range(0, 1)) # prints 0.135591 0.405263 prints(rand_range(0, 1), rand_range(0, 1)) # prints 0.135591 0.405263
[/codeblock] [/codeblock]
@ -828,7 +828,7 @@
<return type="float"> <return type="float">
</return> </return>
<description> <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] [codeblock]
randf() # returns 0.375671 randf() # returns 0.375671
[/codeblock] [/codeblock]
@ -838,7 +838,7 @@
<return type="int"> <return type="int">
</return> </return>
<description> <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] [codeblock]
randi() % 20 # returns random number between 0 and 19 randi() % 20 # returns random number between 0 and 19
randi() % 100 # returns random number between 0 and 99 randi() % 100 # returns random number between 0 and 99

View File

@ -43,7 +43,7 @@
<argument index="1" name="to" type="int"> <argument index="1" name="to" type="int">
</argument> </argument>
<description> <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> </description>
</method> </method>
<method name="randomize"> <method name="randomize">
@ -56,6 +56,7 @@
</methods> </methods>
<members> <members>
<member name="seed" type="int" setter="set_seed" getter="get_seed"> <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> </member>
</members> </members>
<constants> <constants>