Yeah, swap the $start, $total arguments in mt_rand. $start = 112 and $total = 1. So they are backwards.
Alternatively to keep it more dynamic, use this:
PHP Code:
$random = mt_rand(min($start, $total), max($start, $total));
Then either can be larger or smaller