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