Fix mt_rand() overflow less than -1.