Project

General

Profile

$rand » History » Version 1

Per Amundsen, 08/11/2015 10:49 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$rand(v1,v2)*
4
5
Returns a random number or letter between v1 and v2.
6
7
_Same as [[$r]]._
8
9
*Parameters*
10
11
v1 - Start number or letter [0-9A-Za-z].
12
v2 - End number or letter [0-9A-Za-z].
13
14
*Example*
15
16
<pre>
17
; Get a random number between 10 and 100.
18
//echo -ag $rand(10,100)
19
20
; Get a random letter between g and y.
21
//echo -ag $rand(g,y)
22
</pre>