doc: Fix style issues
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user