Project

General

Profile

$r » History » Revision 3

Revision 2 (Per Amundsen, 01/31/2019 05:47 AM) → Revision 3/5 (Per Amundsen, 02/23/2023 07:18 PM)

_Added in 1.9.0_ 

 *$r(v1,v2)* 

 Returns a random number or letter between v1 and v2. 

 _Same as [[$rand]]._ 

 _See also [[$rand]]._ 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | v1 | - Start number or letter [0-9A-Za-z]. | 
 | v2 | - End number or letter [0-9A-Za-z]. | 

 *Example* 

 <pre> 
 ; Get a random number between 10 and 100. 
 //echo -ag $r(10,100) 

 ; Get a random letter between g and y. 
 //echo -ag $r(g,y) 
 </pre>