Project

General

Profile

$r » History » Version 4

Per Amundsen, 02/23/2023 07:19 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 4 Per Amundsen
_See also [[$rands]]._
10
11 1 Per Amundsen
*Parameters*
12
13 3 Per Amundsen
table(ktable).
14
|*Parameter*|*Description*|
15
| v1 | Start number or letter [0-9A-Za-z]. |
16
| v2 | End number or letter [0-9A-Za-z]. |
17 1 Per Amundsen
18
*Example*
19
20
<pre>
21
; Get a random number between 10 and 100.
22
//echo -ag $r(10,100)
23
24
; Get a random letter between g and y.
25
//echo -ag $r(g,y)
26
</pre>