From WikiChip
Difference between revisions of "mirc/identifiers/$r"
< mirc‎ | identifiers

(Created page with " {{mirc title|$r Identifier}}'''$r(value1,value2)''' This works in two ways. If you supply it with numbers for v1 and v2, it returns a random number between v1 and v2. If you...")
 
(Replaced content with "{{mirc title|$r Identifier}} See {{mIRC|$rand}}")
Line 1: Line 1:
 
+
{{mirc title|$r Identifier}} See {{mIRC|$rand}}
 
 
{{mirc title|$r Identifier}}'''$r(value1,value2)''' This works in two ways. If you supply it with numbers for v1 and v2, it returns a random number between v1 and v2. If you supply it with letters, it returns a random letter between letters v1 and v2. (same as $rand)
 
 
 
== Synopsis ==
 
<source lang="mIRC">
 
$r(value1,value2)</source>
 
 
 
== Paramters ==
 
 
 
'''Value1''' = ''Will be the first given value that you want to use for.''
 
 
 
'''Value2''' = ''Will be the second given value that you want to use for.''
 
 
 
== Properties ==
 
 
 
None
 
 
 
== Examples ==
 
<source lang="mIRC">//echo -a $r(0,10)</source>
 
 
 
It will return an random number between 0 up to 10.
 
 
 
<source lang="mIRC">//echo -a $r(a,z)</source>
 
 
 
It will return an lower case random letter between a up to z.
 
 
 
<source lang="mIRC">//echo -a $r(A,Z)</source>
 
 
 
It will return an upper case random number between A up to Z.
 
 
 
== Compatibility ==
 
{{mIRC compatibility|2.1a}}
 
 
 
== See Also ==
 
[[Category:MIRC identifiers]]
 
* {{mIRC|$rand}}
 
* {{mIRC|$v1}}
 
* {{mIRC|$v2}}
 

Revision as of 11:26, 12 June 2017

See $rand