From WikiChip
$r Identifier - mIRC
< mirc‎ | identifiers
Revision as of 08:40, 12 June 2017 by Westor (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


$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

$r(value1,value2)

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

//echo -a $r(0,10)

It will return an random number between 0 up to 10.

//echo -a $r(a,z)

It will return an lower case random letter between a up to z.

//echo -a $r(A,Z)

It will return an upper case random number between A up to Z.

Compatibility

Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also