From WikiChip
Difference between revisions of "mirc/identifiers/$rand"
(→Example) |
(→Paramters) |
||
Line 9: | Line 9: | ||
== Paramters == | == Paramters == | ||
− | '''Value1''' = | + | '''Value1''' = the starting value |
− | '''Value2''' = | + | '''Value2''' = the ending value |
== Properties == | == Properties == |
Revision as of 11:21, 12 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$rand(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.
Synopsis
$rand(value1,value2)
Paramters
Value1 = the starting value
Value2 = the ending value
Properties
None
Examples
//echo -a $rand(0,10)
It will return an random number between 0 up to 10.
//echo -a $rand(a,z)
It will return an lower case random letter between a up to z.
//echo -a $rand(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.