Back To Forum Post
Main Index
Predefined Functions
mt rand
create a random number between $min and $max
[...] = optional ... = your value
[var $... = ]call mt_rand $min=...;$max=...
Example code
<!--parser:xtscript--> var $min = 10 var $max = 20 var $output = call mt_rand $min=$min; $max=$max print A random number between $min and $max = $output <!--/parser:xtscript-->
Show as text
Example output
Reload
A random number between 10 and 20 = 15
Quick index
abs
addslashes
base64_decode
base64_encode
bin2hex
br2nl
ceil
chr
crc32
dechex
floor
hex2bin
hexdec
htmlspecialchars
lcfirst
ltrim
md5
mt_rand
nl2br
ord
pi
pow
rawurldecode
rawurlencode
round
rtrim
sha1
str_ireplace
str_pad
str_repeat
str_replace
str_shuffle
strip_tags
stripos
stripslashes
stristr
strlen
strpos
strrchr
strrev
strripos
strrpos
strstr
strtolower
strtoupper
substr
trim
ucfirst
ucwords
urldecode
urlencode