$r » History » Version 3
Per Amundsen, 02/23/2023 07:18 PM
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 | *Parameters* |
||
10 | |||
11 | 3 | Per Amundsen | table(ktable). |
12 | |*Parameter*|*Description*| |
||
13 | | v1 | Start number or letter [0-9A-Za-z]. | |
||
14 | | v2 | End number or letter [0-9A-Za-z]. | |
||
15 | 1 | Per Amundsen | |
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> |