That's a PHP error.
Looks to me that you may be using the wrong datatype. max/min work with arrays or with two separate arguments, but these have been provided with a single scalar argument. If you have 2x arguments, one low and one high, you provide both for your rand:
PHP Code:
$lowValue = 112;
$highValue = 1;
$rand = mt_rand(min($lowValue, $highValue), max($lowValue, $highValue));