Issue #1454632 by amitgoyal: Fixed Warning: mt_rand() [function.mt-rand]: max(1) is smaller than min(2).